Update State Field in Catalog Task with REST API

bradd_
Mega Contributor

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?

1 ACCEPTED SOLUTION

bradd_
Mega Contributor

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.


View solution in original post

14 REPLIES 14

Here's a screenshot of the choice values for this particular table. Thanks for the direction on this.


find_real_file.png


Unfortunately this doesn't give (me) a clue to the cause for your problem. As 3 is a valid value for the state field I currently have no further idea 😞


Thanks for your help Stefan. I'll continue to dig and if I find anything, I'll be sure to share. Thanks again.


bradd_
Mega Contributor

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.


Hii bradd,

 

I am trying to create the sc_task and facing the same "ACL" issue.I am beginner to SN. Can you explain more on this ?