Lookup Property from sys_properties table in UI Builder

Elena
Tera Contributor

Hi everyone,

I am trying to lookup a system property (sys_properties table) in UI Builder.

I tried with the data resource "Look Up Properties" but I guess it looks for properties of the experience not the system, so I'm getting a null as a result.

I also tried with the data resource "Look Up Record" but I cannot select the correct table (sys_properties).

Is anyone more successful than me and can show me how to do it?

Thanks.

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Elena,

The Look Up Properties composite data resource is restricted to looking up properties defined in the glide.graphql.property.whitelist system property, which is not editable by customers right now.

You can create a transform data resource that will do this. Transform data resources let you execute server-side code and make the results available in UIB. If you go this route, don't forget to create an ACL for your DR. You can find out more about transform data resources here: https://developer.servicenow.com/blog.do?p=/post/quebec-ui-builder-data-resources/

View solution in original post

7 REPLIES 7

Voona Rohila
Kilo Patron
Kilo Patron

Hi Elena , use below method to get the property value

 gs.getProperty('property name');

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi Rohila,

where should I use it in UI Builder? I cannot call gs in a Client Script.

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Elena,

The Look Up Properties composite data resource is restricted to looking up properties defined in the glide.graphql.property.whitelist system property, which is not editable by customers right now.

You can create a transform data resource that will do this. Transform data resources let you execute server-side code and make the results available in UIB. If you go this route, don't forget to create an ACL for your DR. You can find out more about transform data resources here: https://developer.servicenow.com/blog.do?p=/post/quebec-ui-builder-data-resources/

Thanks, it worked.