Setting RITM fields using Cart API

javis
Giga Expert

Hi all,

I was wondering if there is a way to populate fields (not variables) on RITM forms? Everything I've read talks about populating variables but I'd like to have the fields set as well based on what users send to SN via emails. Any help or suggestions is greatly appreciated. Thanks again,

22 REPLIES 22

Kalaiarasan Pus
Giga Sage

I just have a small suggestion here.



Wouldn't it be easy to add variables on the catalog, set them via the cart API while creating the request and have your workflow associated with the catalog to read these variables and set them to corresponding fields on the RITM?


Kalai,



How would I go about your suggestion? Could you help me with the code please?


Add the variables for the fields you want to set value for and in the workflow read the variables and set the value as below



current.field = current.variables.variablename;



This is just a suggestion and you can improve on this as required.