Comments on: Generate a GlideRecord Query for a List https://servicenowguru.com/scripting/generate-gliderecord-query-list/ ServiceNow Consulting Scripting Administration Development Wed, 06 Mar 2024 19:29:56 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: James Farrer https://servicenowguru.com/scripting/generate-gliderecord-query-list/#comment-9633 Fri, 15 Aug 2014 15:11:23 +0000 https://servicenowguru.wpengine.com/?p=5394#comment-9633 In reply to Alain Müller (Aspediens).

I put the checking in place to make sure g_form is there and handle it gracefully if it’s not. When the list is a Related List g_form is available and is used to build the query that includes the current record.

Thanks for the heads up on it not working in Eureka. There’s nothing in the documentation about it so I’ll have to keep an eye on it.

]]>
By: Alain Müller (Aspediens) https://servicenowguru.com/scripting/generate-gliderecord-query-list/#comment-9632 Fri, 15 Aug 2014 08:43:28 +0000 https://servicenowguru.wpengine.com/?p=5394#comment-9632 Hello James,

Thanks for sharing this!
Two remarks:
1. Your code is using the “g_form” object which, I believe, is not available from a List.
2. We have just discovered at Aspediens that the object “g_list” seems to be null in Eureka. We have opened an Incident in /hi for this issue.

Kind Regards,

Alain

]]>
By: James Farrer https://servicenowguru.com/scripting/generate-gliderecord-query-list/#comment-9631 Thu, 14 Aug 2014 21:11:28 +0000 https://servicenowguru.wpengine.com/?p=5394#comment-9631 In reply to Jack Scotty.

Only because that’s what came to my mind first. ‘addQuery()’ can take 1, 2, or 3 parameters. If you only pass it one, it treats it as an encoded query behaving the same as ‘addEncodedQuery()’.

]]>
By: Jack Scotty https://servicenowguru.com/scripting/generate-gliderecord-query-list/#comment-9630 Thu, 14 Aug 2014 20:47:33 +0000 https://servicenowguru.wpengine.com/?p=5394#comment-9630 Any reason why you are using ‘addQuery()’ instead of ‘addEncodedQuery()’ in the alert message?

]]>