How can a single UI Action can be used both in client side and server side.

swathigangadhar
Tera Expert

How can a single UI Action can be used both in client side and server side.

1 ACCEPTED SOLUTION

snehabinani26
Tera Guru

Hi Swathi,



Please configure the Ui Action in the format provided in screenshot.



find_real_file.png



find_real_file.png


View solution in original post

5 REPLIES 5

snehabinani26
Tera Guru

Hi Swathi,



Please configure the Ui Action in the format provided in screenshot.



find_real_file.png



find_real_file.png


Karthik Reddy T
Kilo Sage

Hello Swathi,



Refer below link may helpful to you.



https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

anjalichoudhary
Kilo Guru

Hi Swati,



For using UI ACtion as server and client both, there is a check box named as client, tick that one and then in your script you can write client side code and a function named as   gsftSubmit() is used to call server end and after that you can put server side code.



Below link will help you to understand more!!



https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/



Also there is one out of the box UI Action named as 'Reopen Incident' used as both client and server side, you can go through it.



Hope it helps!!



Regards,


Anjali


bubuprasadswain
Tera Guru

Use 'Client' option checked as like below:


find_real_file.png



Regards,


Bubuprasad