i want to change the change area for standard change template, i tried using fix script its not work

GURUMURTHYG
Tera Contributor

i want to change the change area for standard change template, i tried using fix script its not work

can some one check and correct me if i am running wrong script 
table name is std_change_record_producer

 

i have attached the screenshot 

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@GURUMURTHYG 

your question is not clear

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Kilo Patron

Hi @GURUMURTHYG 

 

Try this one:

 

var producerName = 'Your Template Name Here'; // Name of your producer
var newChArea = 'new_value_here'; // Replace with new change_area value

var grStdChPro = new GlideRecord('std_change_record_producer');
grStdChPro.addQuery('name', producerName);
grStdChPro.query();
while (grStdChPro.next()) {

grStdChPro.change_area = newChArea;
grStdChPro.update();
}

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: