The State of Approval automatically change to Requested

CrysZzz
Tera Expert

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:

CrysZzz_0-1695952481307.png

And this is my workflow, I am not sure that this has relation on this issue or not

CrysZzz_1-1695952650364.png

 

 

 

 

 

 

 

 

 

 

 

 

 

5 REPLIES 5

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/

Regards
Harish