Requestor for not populating correctly using sn_sc.CartJS();

Not applicable
var cart = new sn_sc.CartJS();
cart.setRequestedFor("ghjgjkgjgh68768768");
Requestor for not populating correctly in Requestor for field in Request using the above script.
 
Can anyone help me out !!
6 REPLIES 6

@Community Alums 

seems something related to 2 step checkout has the issue

CartJS API not associating to the Requested For 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Jesse_H
Mega Sage

I had a similar issue. Try setting it like this instead:


    var cartGR = cart.getCart();
    cartGR.requested_for = "ghjgjkgjgh68768768";
    cartGR.update();

var rc = cart.placeOrder();