- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 08:35 AM
Hey guys,
This is kind of a newb question, but I'm having issues updating the State field for a catalog task. The user I am working with has the REST API permissions as well as Admin permissions. We created a custom state that we plan on using as a 'trigger' for our Orchestration tool to read and automate against (i.e. provision server in VMware, provision user in AD, etc.).
URL: https://<instance>.service-now.com/api/now/v1/table/sc_task/<sys_id>
Method: PUT
Payload: {"State":"3"}
Is there something I'm missing? Am I trying to update a system protected field?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 09:37 AM
Thanks to everyone who offered some feedback and suggestions. I have figured out the issue with a partner that we are using for a redesign of our instance and it looks like a misguided ACL was placed on the table that was not allowing me to change the state to a '3'. Through further testing we narrowed down the issue to that specific choice as we could change the state to other choices in the list. Removing the ACL allowed me to successfully update the state to a '3'. Again, thanks for all your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 11:27 AM
My recommendation would be to leverage the REST API Explorer to get this working and then it can produce the code needed to perform the update outside of ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2017 05:52 AM
Hi Michael,
Thanks for the reply. I have been using the REST API Explorer to test this out. Thanks for the recommendation though.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 11:29 AM
Try using below;
https://xxx.service-now.com/api/now/table/sc_task/sys_id
try playing around with REST Explorer. https://xxx.service-now.com/nav_to.do?uri=/$restapi.do
Wiki: REST API Explorer - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2017 05:53 AM
Hu Mukeshkumar,
Thanks for the reply. I have been using the REST API Explorer to test this out. Thanks for the recommendation though.