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-04-2023 07:17 AM - edited 05-04-2023 07:19 AM
UI Action contains this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023 09:46 AM
Yes.. That is also done right... But there's something with the Security analyst workspaces I Believe..