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

Brad Tilton
ServiceNow Employee
ServiceNow Employee

In this code example ritm is just an object, so you could definitely loop through an array of objects in a for loop like:



ritm[array[i].name] = array[i].value;


Abhinay Erra
Giga Sage

I honestly does not know if this syntax is correct current[column name]=value; I have tested this on my end and it does not work.


I tried changing column to ritm as per your code above and it still does not work. I haven't tried hard coding the fields in the inbound action yet


what is current referring to here? Is this inbound action on ritm table?


Yes, current is referring to the inbound action on the ritm table