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.

Need to update catalog task descrption

poco
Tera Contributor

Hi I need to update the catalog task description in work flow 

 

1 Need to populate who was submit the catalog request 

2 Need to pull email from RITM/ task on workflow catalog task description 

 

please help me on this 

1 ACCEPTED SOLUTION

Sumanth16
Kilo Patron

Hi @poco ,

 

1 Need to populate who was submit the catalog request :

 

The Requested Item (RITM) gets created right after the Request (REQ) and has access to the variables, so I would run the BR on the sc_req_item table after Insert

var gr = new GlideRecord('sc_request');
if (gr.get(current.request)) {
    var req_for = current.variables.requested_for;
    gs.log('req_for is '+req_for);
    gr.requested_for = req_for;
    gr.update();
}

 2 Need to pull email from RITM/ task on workflow catalog task description 

      Please explain more about this requirement.

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

 

View solution in original post

1 REPLY 1

Sumanth16
Kilo Patron

Hi @poco ,

 

1 Need to populate who was submit the catalog request :

 

The Requested Item (RITM) gets created right after the Request (REQ) and has access to the variables, so I would run the BR on the sc_req_item table after Insert

var gr = new GlideRecord('sc_request');
if (gr.get(current.request)) {
    var req_for = current.variables.requested_for;
    gs.log('req_for is '+req_for);
    gr.requested_for = req_for;
    gr.update();
}

 2 Need to pull email from RITM/ task on workflow catalog task description 

      Please explain more about this requirement.

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda