How to get update, insert and reject count in a single alert activity in a workflow.
I want to send a alert that includes the number of records that are inserted, updated and rejected in a workflow.
How can i get those three counts in my single alert activity?
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @SmritiFotedar,
The Update data activity generate variables with update and insert counts, you can use them on your alert by calling them like this :
<%=vars.insertCount%>
<%=vars.updateCount%>
For the reject count, you can activate the reject outbound transition on the Update data activity, add a js after to affect the reject recCount to an instance variable, and the use it in your alert like this :
<%=instance.vars.rejectCount%>
Br,
Amine
Hello @SmritiFotedar,
The Update data activity generate variables with update and insert counts, you can use them on your alert by calling them like this :
<%=vars.insertCount%>
<%=vars.updateCount%>
For the reject count, you can activate the reject outbound transition on the Update data activity, add a js after to affect the reject recCount to an instance variable, and the use it in your alert like this :
<%=instance.vars.rejectCount%>
Br,
Amine