The CreatorCon Call for Content is officially open! Get started here.

Can the SLA conditions be updated using a script?

SN Rookie
Giga Expert

There are 200 odd SLAs on a table which currently extends Incident table and it has one of the condition as Incident State = Open.

Now in our new instance the same table will extend task table and will use condition as State = Open. 

Can we update all the SLA's with condition as State = Open where ever it is showing currently as Incident State = Open via a script?

1 ACCEPTED SOLUTION

Sanbir Singh1
Kilo Guru

Export the SLA's in XML and update the state value in them. Once done, re-import these in the environment.

View solution in original post

3 REPLIES 3

FIKRI BENBRAHIM
Kilo Guru

Hello,

Even you can use a background script or you can use the "sla repair" that calls a workflow that changes the SLAs.

Check this for more details: https://community.servicenow.com/community?id=community_question&sys_id=33c8cb61db5cdbc01dcaf3231f96...

 

Kind regards

FIKRI BENBRAHIM Mohamed Jawad

Sanbir Singh1
Kilo Guru

Export the SLA's in XML and update the state value in them. Once done, re-import these in the environment.

NagyDan1
Tera Expert

Why export, and then import? Why not modify it right in the system, by updating the Condition field?