How to add button in Embedded lists

keval3
Tera Contributor

Hi All,

 

I just want to know that can we add button on 

Embedded lists

 each records. I want to add approve button on that records. kindly let me know how to add this.

 

Thanks & Regards

KP

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

What table exactly? Or are you talking about a custom table? Are you actually using approvals on that table, or is it more like just having a UI Action that changes the state of the record?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

 

Sorry it's my mistake that's not table that is Embedded Lists, Can I add button on that?

 

Rmaren
Tera Contributor

Nobody can seem to answer this question. I don't want a related list. I want an embedded list and I want to have  UI action button to do WHATEVER I want the button to do. Is adding a button to an embedded list impossible? Does anyone know?

Yes, definitely possible:

MarkusKraus_0-1725791167333.png

 

You need a column of type "UI Action List":

MarkusKraus_1-1725791232687.png

You might have to change the reference qualifier on sys_dictionary.internal_type though (I think UI Action List is not supported OOTB), e.g. clear the ref qual completely. 

Afterwards you need to set the value of this (in my case "action") field to a list of comma-separated UI Action SysIDs, e.g. with a Business Rule. 

If you want a client UI Action note that there is a variable available in the client script which you can use to identify the SysID of the row that was clicked: 'rowSysId'