Detect if an item exists [Sharepoint Designer Workflow]
October 28th, 2009 |
|
0 Comments »
Question:
I’d like to detect if an item exists in a document library while using a Sharepoint Designer Workflow. It doesn’t seem to be possible. What happens is when I compare values when the item does not exist, it gives an error and Workflow stops there. Is there any way?
Thank you for your help in advance.
Solution:
Yes yuo can.
Set a workflow variable to the value ID of the item you are looking for;
i.e. you are looking for an item in the list with the field “name” equals to “Carl”. set the workflow variable as the item ID with name=Carl;
then check if the workflow variable is greater than 0, if it is the item exists.


