Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

UI Action for list view

Shubham Rai
Tera Contributor

How to trigger a UI action from list view to perform its functionality only on the selected records?

1 ACCEPTED SOLUTION

Astik Thombare
Tera Sage
Tera Sage

Hi @Shubham Rai ,

 

In UI action, you can use g_list object. It has method g_list.getChecked() which returns sys_id's of all selected records. Once you get sys_id's of all selected records then you can glide into those records and perform required operation further

 

Please mark  Correct if this resolves your issue, and also mark 👍 Helpful if you find my response valuable based on its impact.

 

Regards,

Astik Thombare

View solution in original post

2 REPLIES 2

Astik Thombare
Tera Sage
Tera Sage

Hi @Shubham Rai ,

 

In UI action, you can use g_list object. It has method g_list.getChecked() which returns sys_id's of all selected records. Once you get sys_id's of all selected records then you can glide into those records and perform required operation further

 

Please mark  Correct if this resolves your issue, and also mark 👍 Helpful if you find my response valuable based on its impact.

 

Regards,

Astik Thombare

Shubham Rai
Tera Contributor

Hi @Astik Thombare ,

 

Thanks this question is asked to me in interview thanks for quick solution .