GlideappRequestNew

sruthivarghese
Tera Contributor

Hi,

What does GlideappRequestNew do? I have a function which has the following code:

var req = new GlideappRequestNew();
var rc = req.copyCart(this.cartName, this.userID);
this.clearCart();
return rc;

As of what I understood, it creates an REQ. Please correct me if I am wrong. If it creates an REQ, it should map the requested for field to the cart's requested for field.

 

But for some reason the requested for in the REQ created does not show the correct value.

 

Can someone help me out in this?

 

Thanks,

Sruthi

11 REPLIES 11

Thanks Tim for the clarifications.

the requirement is if a record is created, a catalog item's order now will be done and with the attached workflow with the catalog item will trigger and based on that RITM and sctasks will be created. With your code that's happening.

Great! You know, it's entirely possible to do this in Flow Designer as well. There is a "Submit Catalog Item Request" action that you could use.