Need to enable UI action : Referesh Event Rule in workspace level and makes it workable

mastanbe
Tera Contributor

Hi All,

 

I have a requirement to enable ui action in workspace level and makes it as workable.
this ui action is created em_event table. below is the code in native ui level and i need to convert that in workspace level. could you please help me on this one.

gs.getSession().putClientData('em_refresh_event_id', current.getUniqueValue());
var eventId = RP.getParameterValue('sysparm_em_refresh_event_id');
action.setRedirectURL('/em_match_rule_list.do?sysparm_view=refresh_event_rule&sysparm_query=event_classISEMPTY^ORevent_class=' + current.getValue('source'));

gs.addInfoMessage(gs.getMessage("Select an event rule to update with event data and then click \"Refresh Selected\" action"));
mastanbe_0-1750084210660.png

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@mastanbe 

you can simply enable these 2 checkboxes and see if that works in workspace

AnkurBawiskar_0-1750084362313.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar , i have enabled that checkboxes. but not working.

@mastanbe 

what's not working?

UI action is not visible?

UI action is visible but nothing is happening on click of that?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

hi @Ankur Bawiskar ,ui action is visible but when clickin that it not working.