Pass GlideRecord object to function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2020 02:27 AM
Hi everyone,
I cannot pass a GlideRecord object to a function in a Script include. Is this normale/ intended behaviour?
When I pass the GlideRecord to the object, I can still read the field names using GlideRecordUtil, but the row count is zero and I also cannot read any real values from records inside my function.
This is what i wrote:
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2020 11:39 AM
Hi,
Could you please post your complete script or the function where you are facing issues and also the functionality which you want to achieve so that it will be easy for us to debug the issue.
Also, GlideRecord object can be passed to function please find below the link for reference.
Kindly mark my answer as Correct and Helpful based on the Impact.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2020 12:12 AM
I solved it! I can post the solution later. Thanks anyway! 🙂