How to call a UI action from a script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2015 01:09 AM
I have a script which requires to trigger specific UI action. How can I do this?
I see on the wiki page which say action name "Defines a name to use when referencing the UI action in scripts".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2015 01:35 AM
The action name is user in script to identify with UI Action has been triggered.
I guess we can not invoke a UI Action from a script.
In turn you can direct write the same code in the script from where you are trying to invoke the UI Action.
Regards
Pratul Agarwal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2015 02:09 AM
UI action can be triggered from client script using "gsftSubmit" function. But I am not sure how I can achieve this using server script in servicenow. Unfortunately I can not just rewrite the code here to execute the same question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2015 06:27 AM
If you want to execute "whatever" is in UI action using server side script - I would advice you to wrap that "whatever" in a function inside a script include. Call that function from anywhere viz UI action/serverside script.
Let me know if you want to know more details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 03:23 PM
Hello Sumeet,
Is there a way to call UI Action "Retrieve completed update sets" from a script ?
Thank you,
Eashwar Elumalai