Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Code to calculate count on button click on the ESC Portal

ranjitmanji
Tera Contributor

Hi All,

 

I have created a widget with three action buttons, 

I would like to know the code to calculate the number of times users click on the action button "escalate" on the ESC Portal.

Attached is the Portal action buttons screenshot.

 

I have created a field on the Incident form by the name 'u_escalation_counter' of type Integer.

 

Looking forward to your responses,

 

Thank you,

Manji

 

1 REPLY 1

SLK Gupta
Tera Guru

Hi @ranjitmanji 

 

To calculate count on button click on the ESC Portal, you can refer below links which helps in assisting your requirement.


https://www.servicenow.com/community/developer-forum/count-clicks-in-portal/m-p/1504276
https://www.servicenow.com/community/itsm-forum/calculate-count-based-on-ui-button/m-p/245807
If my response helps you in assisting your requirement, please mark it as helpful or accepted solution @ranjitmanji 

Thanks & Regards,

S. Lakshmikanth Gupta