Getting An SPD Approval Workflow To Cancel On Rejection Or Change

Today I was working on an approval workflow for a site I’m building, and I decided to use the SharePoint Designer version of the Approval workflow rather than the out-of-the-box version. Everything went fairly well until I noticed that rejecting an approval task did not cancel the approval workflow.

In the out-of-the-box version, you can set those options here:

20140617Image01

 

Unfortunately, those same options are not exposed as openly in the SPD version. Instead, you have to set the CancelonChange and CancelonRejection workflow variables to Yes before you start the approval cycle:

20140617Image02

 

Once I did that, anyone who rejected an approval task would cause the entire approval workflow process to halt (as I wanted).

Thanks to Slinger’s post for helping me figure this out: http://slingeronline.wordpress.com/2013/02/27/setting-cancel-on-first-rejection-on-an-spd-workflow/

 

 

2 responses to “Getting An SPD Approval Workflow To Cancel On Rejection Or Change

  1. Very helpfull and good method ! Thanks

  2. Kudos for this. Helped me out!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s