- 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 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 05:57 AM
I'm trying with Admin id only but still it is not working
1. state is not read only.
2. we have WRITE ACL for state field with Admin overrides.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 06:24 AM
Hi,
Is there any data policy or State Flow transition which is stopping the state change
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:27 AM