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

Can a UI be triggered automatically, with actually clicking on a link? We want to be able to click on the UI and also to have it trigger automatically when conditions are met.

PaulShea
Kilo Explorer

It has been asked if a UI can be triggered automatically, without actually clicking on a link.

I know both a UI and a Business rule can call the same script include and that's a possible solution.

But someone here would like to have the UI itself be used as a UI, where the link is clicked and the script is run.

And also would like the UI to be launched without clicking on a link.

The person would like the UI to be launched when conditions are met, like a state changing to a specific value.

Can a UI be triggered to run like a business rule?   To get launched without clicking on a link?

Thanks,

Paul

8 REPLIES 8

Hi,



Sorry that I couldn't understand your question properly.



Based on the info you have provided:



If you wanted to check the possibility of triggering an UI Action with out any manual intervention - No (based on my exp)


But you could do use some scripting technique which you are already aware of (Call script include from Business Rule / Events )   as you already mentioned in your first post.


Thanks Brad for diving into this.  


I've asked HI as well and they've given me no solution - I don't think it's possible.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Paul,



The solution should be as simple as moving the code out of the ui action into a script include, then calling the script include from the ui action and anywhere else you need to. Could you give us more info on why that solution won't work or exactly what you're trying to do?


Hi Brad,


That's exactly what I'm going to do.   Create a script include to be used in a UI and a business rule when triggered automatically.


The specs I got wanted me to automatically trigger the UI which I don't believe is possible.


Thanks for your feedback!


-paul