Client script? blocking field update from UI action.

Mark Petras1
Tera Contributor

I am attempting to update the state field on a change to start the approval process. We are adding a new state, peer review, which will now be the first step in the approval process. I updated the approval button UI action to switch the state to peer review. The action does update the field but then it is flipped back to the previous state and I get an invalid update error. I am assuming there is a client script that is running for that field. I was not the person that set up change originally so I am not sure what rule it could be. Is there a way to see what is running when I make updates to change records? 

 

Thank you! 

4 REPLIES 4

AshishKM
Kilo Patron
Kilo Patron

Hi @Mark Petras1,

Please check the change model configuration that "Peer Review" state should be define there, and state transition ( from one state to other ) should be configure.

 

AshishKM_0-1719506900035.png

 

AshishKM_1-1719506987300.png

 

-Thanks,

AshishKM

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

I updated the model and the sequence looks correct. I am still getting invalid update 

Can you share all technical details with screen shots.

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Looks like there are several places you have to update the change model. Seems like they really don't want you to add a state. 

https://docs.servicenow.com/bundle/washingtondc-it-service-management/page/product/change-management...