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.

How to set 'requested for' on Request when using sn_sc.CartJS()

MercBuilding
Tera Guru

Hi,

  We have a catalog item which is raised using transform map. In this we are using sn_sc.CartJS() to add variables to cart and raising the request. Everything is working fine except the requested for, at RITM level requested_for is set correctly but at the REQ level requested for is set wrong. How to set this requested_for at REQ level.

 

MercBuilding_0-1705354921430.pngMercBuilding_1-1705354957304.png

 

 

Thanks!

2 REPLIES 2

Community Alums
Not applicable

you need to get the REQ via GlideRecord and do it there - use dictionary dependancy/buss.rrule

 

Hi,

Thanks for your reply, is it possible to do in the same transform map script where iam creating the requests?