Creating and adding a UI extension point

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 3 minutes de lecture
  • When developing an application, create UI extension points and add them to the server-side UI macros, such as HTML extensions, or the UI pages in the base application code.

    Use a UI extension point to designate the specific location where data or objects can be sent to a registered custom UI macro and where returned results are processed.

    Create a UI extension point

    Create a UI extension point that you can place in the UI macros, such as HTML extensions, in the application code. By placing the UI extension point, you designate the specific location in the application code where data or objects can be sent to a customization and where data is returned.

    Avant de commencer

    Role required: admin or the specific role for the developer or administrator of the application
    Remarque :
    To learn about application-specific administrator roles and delegated development, see Access control rules in application administration apps and Delegated development and deployment.

    Pourquoi et quand exécuter cette tâche

    Define the content and structure for an extension point. This definition should describe how a customization should be structured, how it interacts with the application code, and how the data that is returned by a customization at the extension point is processed.

    By creating a good definition, you provide a structure for the functionality of the extensions.

    Procédure

    1. Navigate to All > System Extension Points > UI Extension Points.
    2. Click New.
    3. On the form, fill in the fields.
      Tableau 1. UI Extension Point form
      Field Description
      Name Unique name for the extension point. The name can be up to 100 alphanumeric characters, including special characters.
      API Name Name of the extension point API that is pre-pended with the application scope to which it applies. This is a system-assigned name and cannot be changed.
      Application Application scope against which the extension point is assigned. This is system-assigned and cannot be changed. For more information about the protections that are offered by the use of scoping, see Application scope.
      Restrict to this scope Option for restricting the extension point to the application scope only.
      Allow access over AJAX/REST Option for enabling or disabling access to the UI extension point over AJAX or REST.

      To learn more about these development architectures and techniques, see AJAX and REST APIs.

      Description Requirements for the custom UI macro, such as how the UI script should be structured and how it should operate with the application code.
      Example Example of how a custom UI macro that interacts with this extension point should be structured so it operates with the application code.
    4. Click Submit.

    Add a UI extension point in the base application code

    Add the UI extension point into a UI macro or HTML extension in the base application code. To add the extension point, place an API call that identifies the location at which registered custom artifacts execute.

    Avant de commencer

    Role required: admin or the specific role for the developer or administrator of the application

    You must first create a UI extension point before you can add it to a UI macro or UI page in the application code.

    Remarque :
    To learn about application-specific administrator roles and delegated development, see Access control rules in application administration apps and Delegated development and deployment.

    Procédure

    1. In the application code, access the existing UI macro that you want to add a scripted extension point to or create a new one.
      To learn more about creating UI macros with jelly tags, see UI macros and Jelly tags.
    2. In the UI macro, add a jelly tag with a line of code at the location that you expect to collect and process custom UI macro output.
      Typically, this line of code contains:
      • A call_extension command that identifies the name of the UI extension point (for example, extension="global.KMArticle.ViewHeader") against which the custom UI macros are registered.
      • Arguments that are passed into the UI macro when it is rendered. For example, for a Knowledge Base article, knowledgerecord="${knowledgeRecord}" passes in the current knowledge record.
      • (Optional) If there are multiple implementations of this extension point, using a limit command specifies that x number of implementations should be returned (for example, limit="1"). This figure shows a UI macro that contains these commands.

      UI extension point with a call_extension command in application code