UI BUILDER: How can i get a property value from sys property table?

fabrizio95360
Tera Expert

I'm creating a transform data to take a property of the sys_properties table but I don't know how to do it:

fabrizio95360_0-1697129281048.png

 

2 REPLIES 2

JagjeetSingh
Kilo Sage
Kilo Sage
function transform(inputs){
//Write any code you want here and you can access the inputs via inputs.INPUT_PROP_NAME
return gs.getProperty(inputs.sys_properties); 
}
Jagjeet Singh
ServiceNow Community Rising Star 2022/2023

Praveen
Tera Contributor

You can use the existing OOB data resources (lookup_system_properties) and call the properties directly to retrieve the instance url dynamically.  

You can retrieve this value inside your code block - var baseurl =api.data.lookup_system_properties_1;



Screenshot 2024-09-04 at 11.49.11 PM.png