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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2010 08:43 PM
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
- Labels:
-
Orchestration (ITOM)
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2010 04:44 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2010 03:13 PM
Thanks mark. I will give that a go.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 04:44 AM
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