- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 06:19 AM
Hi Experts,
I have created 4 variables.
1) Requested for - reference field
2)mobile number - single line text
3)short description - single line text
4)detailed description - single line text
I am trying to store values through scripted rest API.
values are storing in mobile number, short description, detailed description variables. Because these are just single line text. But value is not storing in Requested for variable because it is reference field.
I have attached my request format. Any help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 06:22 AM
Hi
references are stored internally as Sys IDs. So passing any name doesn't help. Either you look up by yourself the display name to fetch the Sys ID or you pass the Sys ID.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 06:22 AM
Hi
references are stored internally as Sys IDs. So passing any name doesn't help. Either you look up by yourself the display name to fetch the Sys ID or you pass the Sys ID.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 06:22 AM
You can take the unique field value like user_name or email in sys_user table for requested for field as a parameter then in your scripted restAPI have function to get the user sys_id using the value and set it to the variable.
Thanks & Regards,
Vasanth