Submit Record Producer Field Values from REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:37 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 11:41 AM
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.