How to read the embedded list

__17
Tera Expert

What kind of script should be created to read the record added to the embedded list by the business rule?

You can identify the record with Glide Record,
I don't know how to get the contents of the embedded list.

Do you use [getDisplayValue ()]?

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey,

Embedded lists are nothing but an m2m table, same as Group membership(sys_user_grmember) table.

Once you find out the table name, you can figure out the association and then retrieve the records in script

 

Below article should help:

https://community.servicenow.com/community?id=community_question&sys_id=bc200361db98dbc01dcaf3231f961971

Best Regards
Aman Kumar

View solution in original post

2 REPLIES 2

Aman Kumar S
Kilo Patron

Hey,

Embedded lists are nothing but an m2m table, same as Group membership(sys_user_grmember) table.

Once you find out the table name, you can figure out the association and then retrieve the records in script

 

Below article should help:

https://community.servicenow.com/community?id=community_question&sys_id=bc200361db98dbc01dcaf3231f961971

Best Regards
Aman Kumar

Ravi9
ServiceNow Employee
ServiceNow Employee

can you provide some sample of what you are trying to achieve here ? 

ideally an embedded list is nothing but a different UI where instead of seeing the data of another table down below , you can see it within the form with an addition of allowing users to edit along with the parent form data BUT its still another table !  

So if you can share what you are trying to do here , we can take a course of action based on that ...