How to get update, insert and reject count in a single alert activity in a workflow? | Community
Skip to main content
Adobe Employee
June 21, 2022
Solved

How to get update, insert and reject count in a single alert activity in a workflow?

  • June 21, 2022
  • 1 reply
  • 983 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amine_Abedour

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

 

 

1 reply

Amine_Abedour
Community Advisor
Amine_AbedourCommunity AdvisorAccepted solution
Community Advisor
June 21, 2022

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

 

 

Amine ABEDOUR