For a Particular Catalog Item is submitted means, Auto update the Cat REQUEST Short description

arun2324
Tera Contributor

Hello All, 

 

                I am new to ServiceNow, Please help me I wanted to auto update Short Description or other fields of Catalog REQ, if a particular catalog Items are ordered.

 

                I used Before & After Business Rules, I can not able to filter out via catalog item sys_id. please reply with which table to selected in BR.

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @arun2324 

You mean, after submission you want to update the Short description of REQ and what other fields means?

*************************************************************************************************************
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]

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

Hi Atul, 

            Thanks for the reply, I figured it out, I can do it by workflow of that particular RITM by placing run script in the beginning of the workflow, script is below: 

var grRequest = new GlideRecord ("sc_request");

grRequest.get(current.request);  //very important line.

grRequest.short_description = "As per my Request";

grRequest.update();

 

Thanks @arun2324 

 

If my answer serve the purpose please mark helpful and solution accepted.

*************************************************************************************************************
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]

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