Preventing SharePoint Workflows from sending emails

I designed Approval and Reminder Workflows using SharePoint Designer 2010. One of the requirements is that the user can put the workflow on HOLD and can later resume it. Hold is a YES/NO field in SharePoint Document Library. I have that logic built in and it is working. This means that no emails should be sent out when the status of HOLD = Yes.

But I am not sure if I can stop the emails that are being processed in the background when the user puts the workflow on HOLD. Is there any logic that I can put into my workflow to stop all emails being processed when user checks the HOLD.

Thanks so much!

Mayank


November 22nd, 2014 1:38am

no the triggered ones can not be stopped
Free Windows Admin Tool Kit Click here and download it now
November 24th, 2014 2:30am

Hi Mayank,

Based on your description, my understanding is that you want to make the approval workflow wait if the Hold is set to Yes and do not send the emails.

I recommend to edit the Approval process in the workflow and then add Wait for Field Change in Current Item action in the Before a Task is Assigned step to make the workflow to wait and the emails will not be sent as the workflow has not run to the step.

Please follow the steps below:

  1. Open the workflow in SharePoint Designer and click Approval in the Start Approval Process step.
  2. Click Change the behavior of a single task under Customization.
  3. Add If current field equals value action and Wait for Field Change in Current Item action in the Before a Task is Assigned step.

After that, the workflow will check if the Hold is set to Yes and wait for the field change to No.

However, it only works when setting the Hold to Yes before the workflow runs, otherwise the workflow will runs without wait and the email will be sent.

Thanks,

Victoria

Forum Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

November 24th, 2014 4:41am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics