The State of Approval automatically change to Requested
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2023 06:57 PM
Hi Experts, I have a problem when using UI action to change the state of Approval related to my record.
My UI action will change the state of Approval to Cancel when it is clicked, however, the state immediately change back to Requested. I cannot find out the reason of it. Hope to be helped.
Below is my UI action:
And this is my workflow, I am not sure that this has relation on this issue or not

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2023 01:31 AM
What is your UI action's action name? you need to pass action name here for example reopen_incident
/Call the UI Action and skip the 'onclick' function
gsftSubmit(null, g_form.getFormElement(), 'reopen_incident'); //MUST call the 'Action name' set in this UI Action
}
refer the blog below
http://servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/
Harish