Cancel Workflows in SharePoint using PowerShell

Requirement: There was a large list with workflow attached to it. The SharePoint Development team came with a requirement to cancel multiple workflows running on these list items, nearly 2000! While canceling workflows on an individual item is pretty straightforward, How about canceling workflows on 1000s of items? It would be a…

Read more

Create Autonumber Unique Column in SharePoint List

Requirement: Implement automatic numbering in the SharePoint list. How to create an auto-incrementing number field in a SharePoint list? Auto-numbering is quite a common requirement when working with SharePoint lists. Say, You may want to auto number list items in SharePoint 2010 issue tracking list! Here are some methods to achieve SharePoint…

Read more

Configuring Workflow Manager in SharePoint 2013 – Step by Step Guide

IntroductionBy default, SharePoint 2013 doesn’t come with the SharePoint 2013 workflow engine. We get only SharePoint 2010 workflow platform type in SharePoint Designer 2013. So, we got to manually configure SharePoint 2013 workflows. This implementation guide walks through configuring Workflow Manager 1.0 step by step. Steps summary: Download and install Workflow Manager…

Read more

SharePoint Workflows Inventory Report using PowerShell

In continuation with my other post: Workflows Inventory Report for SharePoint, which was done using C# object model code, This is a PowerShell version to find all workflows deployed in the SharePoint environment to generate the workflows Inventory report. Basically, this script iterates through all site collections-sites-List objects to fetch workflow data…

Read more

SharePoint Incoming Email does not Trigger Workflow

Today, created a Nintex workflow to send out E-mail notification to SharePoint groups. Start-up option for the workflow was: “Start when Items are created”, but in SharePoint 2007 incoming email didn’t trigger the workflow on new item creation. Root cause: Incoming E-mail attachments areuploaded to SharePoint libraries using “System Account” (If E-mail…

Read more

Nintex Workflow Tasks Item not found Error – Solution

Problem: Nintex Workflow tasks displays : * Item Not found error! Root Cause: Workflows are initiated and items in which workflows ran, are deleted by the end-user. When I tried terminating the workflows, it gave “Server was unable to process the request –> Values does not fall within the expected range.” error…

Read more

How to Start a SharePoint Workflow using PowerShell?

Requirement is: To start a specific Workflow on All documents in a document library. Solution: let’s use PowerShell to Start workflow Programmatically on all Items in a Document Library! After making sure, “Manual start” is enabled for the workflow. PowerShell script to start SharePoint workflow Using this method, We can Start/Stop/Cancel even…

Read more

Workflow Runs on New Document Upload Before Metadata is Set?

That’s the expected behavior! When Workflows configured to start on Item creation, They’ll start as soon as you upload a new document and will not wait until you enter Meta-data. In fact, the Metadata page is an Edit form! Alright, How to Mitigate this issue?  Change the workflow trigger from “Item Creation”…

Read more

Event Receivers vs Workflows – Decide Which One to Use

As SharePoint Event Receivers & SharePoint workflows have a lot of similarities, Many people stuck on deciding which one to go with: Event Receiver or Workflow? event receiver vs. workflow in SharePoint is always tricky to decide. Differences Between SharePoint Event Receivers and SharePoint Workflows: 1. Event handlers Can’t be manually initiated…

Read more

How to Disable Default Out of the Box Workflows in SharePoint?

For some weird reasons, the site owner wanted to disable out of the box workflow: Collect Signature from a particular site collection. In SharePoint 2010, These workflows can be simply activated/deactivated from Site collection features. Refer my post Unable to find OOTB Workflows – Approval, Collect Signatures, Feedback for more info. But…

Read more