List UI action in security incident response workspace

Pranali18
Tera Expert

Hi,

We want to create UI action on list view of security incidents in SIR workspace. After selecting multiple records when click on that UI button then pop winodw should be display with 1 dropdown and 1 string field. Also submit and cancel button should be there.

Until now we are able to create a button and display it on list view but 2nd part we are stucked.

Kindly suggest a way to achieve the same.

Thanks in advance.

1 ACCEPTED SOLUTION

NikhilNiki
Giga Contributor

Hi Pranali,

 You can create a UX Action Implemented as Client Script and use glide modal methods to create pop up of your choice and create a Scripted Rest API to perform server-side operation. You can call the Scripted Rest API from client script and also you can pass parameters.

 

e.g. To Call Scripted Rest API from client script use

 
fetch('/<resourcepath_from_scripted_rest_api>?'param1=' + encodeURIComponent(sysid)+'&param1=' + encodeURIComponent(note), {
    method: 'GET',
    headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json'
    }
})

View solution in original post

3 REPLIES 3

GlideFather
Tera Patron

Hi @Pranali18 
good that you have the button visible, it is a good first step. What does the UI Action contain?


You might want to take a look at Glide Modals:

Let me know how did you progress

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@GlideFather Thank you for your response.

I'm not able to use Glide modal in List action as there we can either select client or server both will not work at a time.

I'm able to create a page under list, now not sure about how to trigger that. New to UI builder so do not have any idea on event mapping. Please advise.

Thanks!

NikhilNiki
Giga Contributor

Hi Pranali,

 You can create a UX Action Implemented as Client Script and use glide modal methods to create pop up of your choice and create a Scripted Rest API to perform server-side operation. You can call the Scripted Rest API from client script and also you can pass parameters.

 

e.g. To Call Scripted Rest API from client script use

 
fetch('/<resourcepath_from_scripted_rest_api>?'param1=' + encodeURIComponent(sysid)+'&param1=' + encodeURIComponent(note), {
    method: 'GET',
    headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json'
    }
})