AnsweredAssumed Answered

How can I stop workflow when Query List returns Zero Reults?

Question asked by ms1041 on Jan 9, 2017
Latest reply on Jan 9, 2017 by burkslm

I've built a fairly simple workflow that queries a list for specific results; for each result, send email.    The workflow is working as long as the query returns at least one result.   


Problem:   If the query returns zero results, I get the workflow error:  Error operating on collection variable. Index property is greater than the number of items in the collection.


Can someone give some advice for how to handle this type of scenario?    

- Query List operation returns zero results, stop workflow