UI BUILDER: How can i get a property value from sys property table?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 09:49 AM
I'm creating a transform data to take a property of the sys_properties table but I don't know how to do it:
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 08:32 PM
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
ServiceNow Community Rising Star 2022/2023
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 11:23 AM
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;