- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 06:02 AM
Hi All,
i want to get the record with all the fields from query object.
for example i have a table with these 3 fileds
cmp_name,
address,
partner
without mentioning filed names i want to get record .
Thank you
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 08:18 AM
Hi Rajendra,
Here's a blog post that describes how to do what you're looking for.
Community Code Snippets - GlideRecord to Object Array Conversion

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 06:45 AM
Could you describe a little more about what you're looking to do? You should be able to query records and retrieve their values through GlideRecord.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 08:09 AM
Thanks Brad for your quick response.
my query like this.
var gr = new GlideRecord('table_name');
gr.query();
while(gr.next()){
var name = gr.name;
var addr = gr.addr;
}
in above query we are mentioning each field name, without mentioning fields i need whole record as below
{name:"sssss",addr:"addr-1"}
thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 08:18 AM
Hi Rajendra,
Here's a blog post that describes how to do what you're looking for.
Community Code Snippets - GlideRecord to Object Array Conversion