Error using SYS ID for "requested for" while creating INC with OOB endpoint method

Arjit Gourav
Tera Contributor

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

        "sys_id""-1",
        "number"null,
        "record""api/now/table/incident/-1",
 
Does anyone have any suggestion for the troubleshooting path to follow for this?
1 ACCEPTED SOLUTION

@Arjit Gourav were you able to get this fixed?


Raghav
MVP 2023

View solution in original post

11 REPLIES 11

1. Any default value in your variable like "javascript:gs.getUserID()". you can remove that and try.

2. Also try changing the variable backend name to requested_for1, just to rule out any conflicting script issues with same name.


Raghav
MVP 2023

@Arjit Gourav were you able to get this fixed?


Raghav
MVP 2023