Is there a way where I can bind data resource in UI builder to a list component?

Louay saeed
Kilo Explorer

Is there a way where I can bind data resource in UI builder to a list component. I have data resource that returns all users from sys_users. I want to use this data resource and attach it to List/Simple list or any other table formed component where i dont choose the table name directly inside the config of ui builder but instead use the data resource. I also tried evaluateproperty script but didnt work. 

3 REPLIES 3

Saurav11
Kilo Patron
Kilo Patron

Hello,

Did you check the below:-

https://docs.servicenow.com/bundle/quebec-application-development/page/administer/ui-builder/task/connect-data.html

https://developer.servicenow.com/blog.do?p=/post/quebec-ui-builder-data-resources/

Please mark answer correct/helpful based on Impact.

I have seen these resources before . I can see the way he binds the data resource to a heading. I want something similar but to a list or simple list or any kind of table. Instead of adding a list and then writing the name of the table to display its records.

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Louay,

The list components do their own data fetching so you can't find the data from a data resource to those components. You could make them more dynamic by binding something to table name and query properties on the component. You could also use the new repeater component in San Diego to create your own list based on the data from a data resource.