Solved

Query List - stopping scheduled workflow when no results are provided

  • 28 April 2022
  • 3 replies
  • 22 views

Badge +2

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 🙂

icon

Best answer by Pyae 30 April 2022, 00:07

View original

3 replies

Badge +5

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.

Badge +2
Thank you so much 🙂
Badge +5
You're welcome 🙂

Reply