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.

Need to trigger repair SLA UI action from server side on Schedule change in the SLA definition.

Pavan B V1
Tera Contributor

Hello Everyone,

 

I have a requirement to Automate this Repair SLA functionality which is currently an UI Action on Task Table written on client side. (https://your_instance.service-now.com/sys_ui_action.do?sys_id=11b42ea8c3b2310056f1f71a54d3aec0&syspa...

 

I want to automate this function whenever the schedule is changed in any SLA Definition which is attached to a task. Automation in essence, I need this Ui action to be automatically clicked or any other way the function written in UI action should be executed from server side(May be Business rule) when the schedule change happens in the SLA definition which is tagged in the task record.

 

Some one please help me to achieve this.

 

With best regards,

Pavan

2 REPLIES 2

Abbas_5
Tera Sage
Tera Sage

Hello @Pavan B V1,

Please refer to the link below:
https://www.servicenow.com/community/itsm-forum/how-to-trigger-an-sla-via-ui-action/td-p/773114

 

Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik

abhishek_s
Tera Contributor

The SLARepair class has some pretty nifty methods to do server side what the UI action does -

https://developer.servicenow.com/dev.do#!/reference/api/vancouver/server_legacy/c_GlideAggregateAPI#...

 

The UI action seems to do some more validations; so make sure you test the server side code with a few records before you enable it for all records.