What are Extensions in - GlideScriptedExtensionPoint ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2019 09:44 AM
Hi All,
I just wanted to understand what does the method getExtensions returns in the GlideScriptedExtensionPoint?
Why the methods defined in the extension point has to run N number of times (Extensions)?
For example:
var eps = new GlideScriptedExtensionPoint().getExtensions("CanReserve");
eps.forEach(function(ep)
{
if(ep.handles(thing))
{
canReserve = ep.canReserve(thing,from,until,by);
}
});
Thanks & Regards,
Raji.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2019 11:06 AM
Hi,
Explained in Detail:
https://community.servicenow.com/community?id=community_blog&sys_id=f68a4308db88ab40200f0b55ca96191a
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 03:32 AM
this article link is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2019 11:19 AM
Hi Raji,
will you read the below article, I hope u will have a clear understanding of it
https://codecreative.io/blog/are-extension-points-worth-it/
do mark helpful in response
Regards,
Ajay
[ Architect | Certified Professional]
Was this response helpful? If so, please mark it as ✅ Helpful and ✅ Accept as Solution to help others find answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2019 08:34 AM
Hi Both,
Thank you for your quick response, I have gone through these articles earlier to my question in the forum. My only doubt is what is the necessity of running all the extensions with the same name and then storing it in the same variable (Only the last extension will be stored in the ), you can refer to the below script,
var eps = new GlideScriptedExtensionPoint().getExtensions("CanReserve");
eps.forEach(function(ep)
{
if(ep.handles(thing))
{
canReserve = ep.canReserve(thing,from,until,by);
}
});
Thanks & Regards,
Raji.