unable to update a record in table using Patch/Put
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:28 PM
I'm trying to update a specific record in a table using the following API
but doesn't seem to be working. I get a 200 response back so it seems to be processing but the approval state does not change from 'Not Yet Requested' to 'approved'
body = '{'approval': 'approved'}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 01:17 AM
Is any workflow stopping?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 07:06 AM
I have tried the exact same steps mentioned by you. The approval field is getting updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 11:02 AM
I am able to modify other fields except for approval state. It seems like i'm missing some mandatory fields but can't figure it out. when i try to create a change request with approved state already, i get the following error but they are all present.
url:
'https://xxxxxxxxx.service-now.com//api/now/table/change_request'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 09:50 PM
From the look of the log. Your custom data policies are restricting.