Submit Record Producer Field Values from REST API

Lavanya R
Tera Contributor

Hi All,

 

I have a custom API for Submitting a record producer where I am passing the sys_id of the particular record. For Example, I have a RP for incident, the record is getting created successfully, but the fields "Requested for" and "Caller" are being set to blank/a guest user. How do I set the value to the current user or if the user send the value in the payload, I have to consider that.

 

Thanks in Advance

 

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, I would expect that you would need to pass in the sys_id's of the referenced records for these fields, ensuring that the producer script(s) did not try to map these to the current logged in user; or add another field that could be used to pass in a 'name' and then use the producers  script to lookup the correct user and populate the fields;
But with no clear details of your producer or the payload you are passing in, I am only guessing at possible issues\solutions.