How do I get List values using Script Include

SD4
Tera Contributor

I have a table that contains a List field with multiple values

find_real_file.png

How do I get those values from that field using script include

 find_real_file.png

 

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

Instead of getDisplayValue() use IncludeList.push(member.u_member.toString());

 

Also it would be helpful if you can share some background and information about which table store what.

 

Thanks,
Anil Lnade

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

15 REPLIES 15

For this you need to write onChange client script and use GlideAjax call to get sys_id's of user with above logic.

Return that result and use it in client script to populate the variable.

https://community.servicenow.com/community?id=community_article&sys_id=9f7ce2e1dbd0dbc01dcaf3231f961...

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande