Need to Populate RITM Short description value on Change Request Short description

gPadmavathi_04
Tera Contributor

when we click on Create Change button on RITM then auto-populate the short description value of RITM to Change request Short description field.

gPadmavathi_04_1-1707372191638.png

 

gPadmavathi_04_2-1707372282588.png

 

 

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @gPadmavathi_04 

 

You need to update the UI action for the same

LearnNGrowAtul_0-1707397389246.pngLearnNGrowAtul_1-1707397400431.png

 

Sampel code

var changeRequest = ChangeRequest.newNormal();
    changeRequest.setValue("short_description", current.short_description);
    changeRequest.setValue("description", current.description);
 
 
Refer
 
https://INSTANCENMAE.service-now.com/now/nav/ui/classic/params/target/sys_ui_action.do%3Fsys_id%3D30c9566dc61122740030e173564c1c74%26sysparm_record_target%3Dsys_ui_action%26sysparm_record_row%3D38%26sysparm_record_rows%3D53%26sysparm_record_list%3DtableSTARTSWITHIncident%255EORDERBYorder
*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@gPadmavathi_04 Please check the code of Create Change UI Action, you simply need to set the short_description of the change record with the short description of the current record.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @gPadmavathi_04 

 

You need to update the UI action for the same

LearnNGrowAtul_0-1707397389246.pngLearnNGrowAtul_1-1707397400431.png

 

Sampel code

var changeRequest = ChangeRequest.newNormal();
    changeRequest.setValue("short_description", current.short_description);
    changeRequest.setValue("description", current.description);
 
 
Refer
 
https://INSTANCENMAE.service-now.com/now/nav/ui/classic/params/target/sys_ui_action.do%3Fsys_id%3D30c9566dc61122740030e173564c1c74%26sysparm_record_target%3Dsys_ui_action%26sysparm_record_row%3D38%26sysparm_record_rows%3D53%26sysparm_record_list%3DtableSTARTSWITHIncident%255EORDERBYorder
*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************