- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 05:32 AM
Hi,
we have a custom request table which follows state flow procedure. we are trying to update the state field from 'inprogress' to 'Awaiting Approval/Pending' via REST Table API explorer but it is not getting updated and there is no error.
It shows 200 status.
The state changes are handled via UI action only by end users & Admin users.
When we use state flows, REST API will not update the state field?
Solved! Go to Solution.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 05:50 AM
Hi,
Few things to check
1) Is that state field readonly at dictionary level - if yes then you cannot update it from API
2) Is there any field level WRITE ACL which is restricting that API user from updating
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 06:33 AM
I have checked it, the conditions are getting passed but still the state is not getting updated.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 06:47 AM
I just found that state field to 'read only' in dictionary override for the custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 07:03 AM
That's what was mentioned in my 1st reply.
Glad that it helped.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 05:50 AM
Make sure state field is not read only.
I tried to reproduce this on my personal instance , I applied state flow on incident table and updated the state using table API "PUT" method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 05:58 AM
Is the state getting updated for u via table api?