- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2020 04:43 AM
Hi All,
We are not able to update State field in Call table from rest user. I checked all the business rules and data policy no restrictions. Write access is there for State field for Rest user. But still not able to update State. I am testing using rest api explorer by impersonating as rest user.
I can update all other fields in call table but State is not updating. From the UI Rest user can update the State field.
And strange behavior is, i tested even as admin, but still i cannot update State field field through rest api.
Can you please help. I checked as per my knowledge but did not find any issue. This is bit urgent.
Thanks,
Madan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2020 06:01 AM
Hi All,
Thanks for your help.
I think i found the issue.
Read only was set in the dictionary level of that field. I removed the read only from dictionary level and it is working. Call state field is updating from rest api.
Thanks,
Madan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2020 04:50 AM
Hi Madan,
If by the Call table you are referring to new_call, there is no OOTB state field. If you have a state field on that table, it's likely name is u_state. Could that be the issue? If you are not working with new_call, please supply the table name.
Hope that helps.
:{)
Helpful and Correct tags are appreciated and help others to find information faster
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2020 04:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2020 05:33 AM
Hi Madan,
If you are able to update other fields in the record, that says you are accessing the record properly. The likely causes of the failure to update would be:
- As Ankur points out you have an error in the column name.
- The value that you are trying to apply is not valid. This can be tricky. If state is an integer and you try to apply a value of "In Progress", it won't work.
- You may have background objects, business rules, data policies, etc. that kick in and reverse the action. I had that on one case and it took a lot of digging to find the culprit.
Hope that helps.
:{)
Helpful and Correct tags are appreciated and help others to find information faster
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2020 05:05 AM
Hi Madan,
Are you referring to the correct field on that table
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader