Regarding Glide Record method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 06:41 AM - edited 08-05-2025 06:42 AM
Please clear a doubt.
I tried to insert a record in a table through initialize() method(Glide Record) , using Background Script.
The record was successfully inserted , but when I inserted it without using initialize() method, it was still created.
If we can create a record without initialize() method, then why do we use it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 12:28 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 08:56 PM
Refer below post and article that explains in detail when to use initialize() method,
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 12:30 AM
Insightful! Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 09:55 PM
Hi @khuranahima ,
Initialize() creates an empty record that allows you to populate the values. If you are not using Initialize(), it may still create a record but there is a possibility to have any previous record value or possibility of values overwritting etc. Creating a blank record and then inserting values will make sure that no previous value or overwritting is happening.
Hope i was able to clear your doubt. If yes, please mark my answer as - Solution accepted.
Regards,
Nikhil Bajaj
Regards,
Nikhil Bajaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 12:25 AM
Thanks a lot!