“addExtraField()” GlideRecord API simplifying management of dot-walked fields in scripts
New article articles in ServiceNow Community
·
Dec 08, 2024
·
article
The Washington DC release introduces a powerful new method, “addExtraField(),” within the GlideRecord API, aimed at simplifying the management of dot-walked fields in your scripts.
Historically, accessing dot-walked field data required several database calls one for each field in the path complicating script logic and impacting performance. With the introduction of “addExtraField(),” those issues are now a thing of the past! This method enables you to fetch dot-walked field data with a single database query, enhancing code clarity and operational efficiency.
Here’s an example illustrating how to use “addExtraField()” to retrieve a caller’s location name.
https://www.servicenow.com/community/developer-articles/addextrafield-gliderecord-api-simplifying-management-of-dot/ta-p/3122432