why we use/where we use ----''getGlideObject()''...............
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 11:49 AM
plse explain

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 12:03 PM
I had the same question a couple of years back and these were a few of the sources that helped me out in understanding it. mainly because of the examples given.
Using GlideRecord to Query Tables - ServiceNow Wiki
GlideRecord Query Cheat Sheet - ServiceNow Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2018 12:48 PM
To get the the object from the date time field.
It's a easy way to convert the value in a date/time field to GlideDateTime Object, is by using getGlideObject() method of the Glide Element Class.
For Eg :
var gdt = current.start_time.getGlideObject()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2018 12:29 AM
Hi Kush,
The getGlideObject() method is used for instantiating any object and not only for date/time field. For example, it can be used for fetching the questions and answers for the variables . Refer https://community.servicenow.com/community?id=community_question&sys_id=b7654faddbd8dbc01dcaf3231f961955
Regards,
Swathi