How to either trigger a UI action from a Business Rule or use the script in the Business Rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 06:42 AM
Afternoon.
We have a Ui Action that when pressed denies admin access. I am trying to automate this so if you are not on a pre approved list of users your request gets auto denied. How can I utilise the script in the UI Action to either run in a business rule "after update", or in flow designer?. At present flow designer does the group look up and if they are not in the group it sets the field "Auto denied" to "True". This is what I would then have trigger the business rule. Here is the script in the UI Action:-
function deny(){
var gm = new GlideModal('x_syaps_abr_deny_confirmation');
//Sets the dialog title
gm.setTitle('Deny Request');
//sets the value of the preference table
gm.setPreference('my_sys_id', g_form.getUniqueValue());
gm.render();
}
Many Thanks
0 REPLIES 0