---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideScriptedExtensionPoint - Scoped

# GlideScriptedExtensionPoint - Scoped {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The GlideScriptedExtensionPoint API provides a method that returns
the extension instances associated with a specified extension point.

From these extension instances, you can extend the functionality of an application without
altering the original application code. You can use pre-existing extension points available in
selected ServiceNow AI Platform applications, or you can add extension points when you
develop custom applications in your own instance.

This API is available in the base ServiceNow instance.

For more information on extension points, see [Using extension points to extend
application functionality](https://servicenow-prod.fluidtopics.net/agUCalbZ4ypHMncaJXRaoQ "Use extension points to extend the functionality of an application without altering the original application code. You can use pre-existing extension points available in selected ServiceNow AI Platform applications, or you can add extension points when you develop custom applications in your own instance.").

## GlideScriptedExtensionPoint - getExtensions(String name) {#ariaid-title2}

Returns the extension instances associated with a specified extension
point.
These extension instances are persisted in the Extension Instance \[sys_extension_instance\]
table. For more information on extension points, see [Using extension points to extend
application functionality](https://servicenow-prod.fluidtopics.net/agUCalbZ4ypHMncaJXRaoQ "Use extension points to extend the functionality of an application without altering the original application code. You can use pre-existing extension points available in selected ServiceNow AI Platform applications, or you can add extension points when you develop custom applications in your own instance.").  
Note:  
The script include instances returned by the getExtensions() method are uninitialized. If your interface includes an initialize method, call that method before calling other methods on the returned instance. For example:

    var eps = new GlideScriptedExtensionPoint().getExtensions("RelatedListItemCandidateFilter");
     for (var i = 0; i < eps.length; i++) {    
       eps[i].initialize(tableName, parentFieldName, parentRecordSysId, referencedFieldName);
       eps[i].getFilterQuery();
     }

{#GScriptExtPt-getExtensions__table_tkf_cgt_x5b__entry__3}

| Name | Type | Description |
|-|-|-|
| name | String | Name of the extension point for which to return the extension instances. Located in the Extension Instance \[sys_extension_instance\] table. |
[Table 1. Parameters]

{#GScriptExtPt-getExtensions__table_tkf_cgt_x5b} {#GScriptExtPt-getExtensions__table_ukf_cgt_x5b__entry__2}

| Type | Description |
|-|-|
| Array of Objects | Extension instances associated with the specified endpoint. |
[Table 2. Returns]

{#GScriptExtPt-getExtensions__table_ukf_cgt_x5b}  
The following code example returns the extension instances for the
RelatedListItemCandidateFilter extension point. The "class" listed for each instance
represents a script include.

    var eps = new GlideScriptedExtensionPoint().getExtensions("RelatedListItemCandidateFilter");

Response:

    global.RelatedListItemCandidateFilter RelatedListItemCandidateFilter
    global.RelatedListItemCandidateFilter ProblemRelatedListChangeRequestItemFilter
    global.RelatedListItemCandidateFilter RelatedListConfigItemFilter
    global.RelatedListItemCandidateFilter RelatedListItemCandidateFilterForAgileDevelopment
    global.RelatedListItemCandidateFilter ProblemRelatedListIncidentItemFilter
    global.RelatedListItemCandidateFilter RelatedListIncidentItemCandidateFilter
    global.RelatedListItemCandidateFilter RelatedListCIItemCandidateFilter


