State field is not getting updated via REST API explorer

Niranchana1
Tera Contributor

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?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.

Hi,

Is there any data policy or State Flow transition which is stopping the state change

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi,

Did you check any of your State flow condition is stopping the update

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader