Code to calculate count on button click on the ESC Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 05:15 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 06:24 PM
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