UI actions on analyst workspaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 08:54 AM
We've a UI action REQUEST IP BLOCK on our security incident form and it does the following, populates the IP block into the form field.
var ip_block = new GlideRecord("u_ip_block");
//var inc_record = new GlideRecord("sn_si_incident");
ip_block.u_sec_ticket = current.sys_id;
ip_block.state='-1';
ip_block.u_ip_geo_loc=current.location;
ip_block.u_ip_lob_target=current.u_lob_target;
var sysID = ip_block.insert();
current.u_ip_blocker_reqnumber = sysID;
var mySysID = current.update();
gs.addInfoMessage("IP Block Request " + ip_block.number + " created");
action.setRedirectURL(ip_block);
action.setReturnURL(current);
I want the same to be on my Analyst workspace as a button. Any advise.?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 12:43 PM
Check out the module: UX Form Action
Create an action type of UI Action and then add your UI action you created. Look at baseline examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 09:10 PM
Thanks @Michael Fry1 ,
I have already created one. I'm not really sure on how to add this button there on my workspace. In analyst workspace, there is a separate module where we can create form UI actions.. it can either be dialog based or server side actions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023 05:25 AM
Did you go look at the module: UX Form Action? I'm not asking you to create another UI Action. I'm asking you to create a UX Form Action with type UI Action and using your UI Action,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023 06:43 AM
Yes, @Michael Fry1 ,
I have created a UX form action with the type UI action and have used my UI action for the same.