- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 09:49 PM
While trying to create a ticket through a record producer using an API, it's throwing error for some particular sys ID
The end point is as below:
POST: /sn_sc/servicecatalog/items/{sys_id}/submit_producer
The sys ID is present and user being active, and the call is getting successful with using USER ID for the user profiles in the "requested for" field.
But while using the SYS IDs, it's throwing the error as below
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 09:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 10:51 PM
how is the request body looking?
are you trying to set user in some reference variable? what type of variable is that?
please share some screenshots.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 11:30 PM
Hi @Ankur Bawiskar ,
{
"variables": {
"field": "value"
"requested_for": "SYS ID",
}
}
The body of request looks like above which contains OTHER fields in the body as well. The variable used is a reference type and referring to sys_user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 11:31 PM
did you try for some other variable which is of reference type?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 12:27 AM
Yes @Ankur Bawiskar , Trying with "Requested By" throws success for the same sys ID and as I check if any difference between the two field configurations in the record producer, couldn't find any single difference between the two i.e. "requested_by" and "requested_for"