Hi,
I am trying to create catalog request by catalog scripting. There is a record producer where I can change the requestor for the catalog item being ordered. The script for creating catalog request for the catalog item written in record producer is as follows:
var myCart = new Cart();
if(gs.getUserID() != producer.u_requestor) {
myCart.cart = _getCart(producer.u_requestor);
myCart.clearCart();
gs.print(myCart.cart.user.user_name);
}
var item = myCart.addItem("bd9663b3183f9800bb172bf3a6f7e2c8", 1); // sys_id of catalog item, quantity