Good day!
I need a workflow that sends email to 20 list items and upon reaching 20, it sends a different email to the next item.
Don't even know where to begin, so would appreciate very much if you put me into the right direction.
Thank you.
Resty
Good day!
I need a workflow that sends email to 20 list items and upon reaching 20, it sends a different email to the next item.
Don't even know where to begin, so would appreciate very much if you put me into the right direction.
Thank you.
Resty
Is this SharePoint 2010 or 2013 Workflow?
If it is SharePoint 2013,
Use the below mentioned Rest API to get the count.
- Call Http Event: WorkFlowContext:SiteURL/_api/web/lists/GetByTitle('ListName')/ItemCount
- Save the output in the "ResultsDictionary"
- And Get "d/ItemCount" from the "ResultsDictionary", store it in the Workflow local variable named "ListItemCount".
- Put the condition
If "ListItemCount greater than 20"
Send Type2 email
else
send Type1 Email.
If it is SharePoint 2010,
Please visit the following URL:
How can I set up a workflow to count the number of items in a list?