The CreatorCon Call for Content is officially open! Get started here.

How to call 'UI Actions' by their 'Action Name'

Not applicable

Hi all,
You can assign an 'Action Name' to a 'UI Script' so that you can call the UI Action from another script. This is precisely what I would like to do but I can't for the life of me figure out how to call it.

Has anyone done this?



Thanks in advance.

Steve

3 REPLIES 3

Mark Stanger
Giga Sage

Hey Steve. It sounds like you're already part way there on this. There are 2 things you'll need to do.

1) Make sure that your UI action actually has an action name to be called. Otherwise, you'll need to use the sys_id (which you don't want to do)

2) You can call the UI action by using a 'gsftSubmit' call in your client script, UI policy, or UI script. There's an example of using 'gsftSubmit' in a script on this page...

http://www.servicenowguru.com/scripting/client-scripts-scripting/javascript-popup-boxes-servicenow/

You just need to put the UI action name inside the function to call it.


Thanks mark. I will give that a go.


Steve


can we trigger business rule with ui action. I mean when user click on ui action business rule should create child incident. I know we can do this via ui script but is der any way we can do the same with BR