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.

How to Cancel an SLA and Start another SLA in Code

Yusuf5
Tera Expert

Hi,

I wonder if there is a way of Stopping/Canceling/Completing an SLA and Start another set of SLAs in script ?

Any help and code snipped is appreciated.

Regards

Yusuf

1 ACCEPTED SOLUTION

Yusuf5
Tera Expert

Hi,

I've found a solution. I didn't have to play with the Task SLA records (delete/update etc.).

All I have to do, just change the fields in the Business Rule that cause to start another SLA.

In this case, it cancels the previous SLA and starts a new one.

Regards

Yusuf

View solution in original post

3 REPLIES 3

Allen Andreas
Tera Patron

Hi,

Please see this link for assistance: https://community.servicenow.com/community?id=community_question&sys_id=a4da0b6ddb5cdbc01dcaf3231f96...

You'd need to stop the workflow as well.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Yusuf5
Tera Expert

Hi,

I've found a solution. I didn't have to play with the Task SLA records (delete/update etc.).

All I have to do, just change the fields in the Business Rule that cause to start another SLA.

In this case, it cancels the previous SLA and starts a new one.

Regards

Yusuf

Hi Yusuf,

 

Could you let me know how you achieved it