Amok7__5
Scholar

Query List - stopping scheduled workflow when no results are provided

Jump to solution

I have a scheduled workflow that runs daily which:

  1. queries a list within the site looking for any items matching the criteria specified
  2. loops through each of the items identified and gathers information
  3. builds a string of that information
  4. sends an email with the information compiled 

I am looking for help please to figure out how to end the workflow where there are no items identified at step 1 thus preventing the email from being sent out with no information.

 

Please see screen shots below which might assist and thanks in advance for any help 🙂

0 Kudos
Reply
3 Replies
Pyae
Scout

Re: Query List - stopping scheduled workflow when no results are provided

Jump to solution

You can add condition block and check the collection, if the collection is empty, you can end the workflow/terminate workflow action inside the condition block. So, the workflow will not continue to the following loop action and sending email.

0 Kudos
Reply
Amok7__5
Scholar

Re: Query List - stopping scheduled workflow when no results are provided

Jump to solution
Thank you so much 🙂
0 Kudos
Reply
Pyae
Scout

Re: Query List - stopping scheduled workflow when no results are provided

Jump to solution
You're welcome 🙂
0 Kudos
Reply