Approve button opening a new record

NagaMounika
Tera Contributor

When I am trying to approve a record instead of updating the record as approved it is redirecting to new record instead of approving when I relaod the record one or more time and approve it the record is getting approved any leads would be helpful

1 ACCEPTED SOLUTION

@NagaMounika 

so it means approval is not working when that button is clicked?

it's an OOB UI action and no change is done

Please raise a Now Case with ServiceNow.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

10 REPLIES 10

Nilesh Pol
Tera Guru

Hi @NagaMounika 

There might be an issue with the script or the way the "Approve" action is implemented. Inspect the UI Action code used for approval. Sometimes, the button may trigger a redirect or create a new record due to an incorrect client script or business logic.

 

Hi @Nilesh Pol 
This is OOTB ui action which has two lines as

current.state=approved;

current.update();

 

There is no other script wirtten

 

 

Hi @NagaMounika 

verify with the Debugger window, you can select a script type (e.g., Business Rules, Script Includes, etc.) and choose Start Debugging.

there You will get actual cause.

Babu Govind
Tera Contributor

Can you provide screenshots or steps you followed to reproduce?