Setting RITM fields using Cart API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2016 06:41 AM
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,
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2016 12:46 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2016 12:53 PM
Kalai,
How would I go about your suggestion? Could you help me with the code please?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2016 12:56 PM
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.