Make Variables and Types Available to Extensions

If you want a variable, constant, or type that you've defined in your App UI to be available to App UIs in another extension, you can mark them accessible to extensions. This way, your artifacts become available to App UIs in another extension when someone adds your App UI as a dependency.

Note:

Marking your variable or constant accessible to extensions means letting other extension developers change its value. Before doing this, carefully consider the consequences of allowing others to overwrite your values.
  • To mark your variable or constant available to App UIs in another extension, go to the Variables editor and select the variable or the constant.
    • In the variable's Properties pane, select Read Only to allow other App UIs to read the variable's value; select Read/Write to allow other App UIs to read and modify the variable's value.
    • In the constant's Properties pane, select Read/Override to allow other App UIs to read or override the constant.

    Variables that are accessible to extensions have a check mark (Check mark icon) against them in the Extension Read and/or Extension Write columns under Variables in the Variables editor. Constants have a check mark in the Extension Read/Override column under Constants.
    Description of variable-available-extn.png follows
    Description of the illustration variable-available-extn.png

    When you expose a variable or constant to extensions, make sure you enter a description so developers who extend its functionality know what it's meant for.

    Tip:

    If you have a large number of variables defined, click Filter icon and select Exposed to Extensions Only to filter and view only those variables marked accessible to extensions.
  • To make your type available to App UIs in another extension, go to the Types editor and select the type, then in its Properties pane, select Read/Override.

    Types that are accessible to extensions have a check mark (Check mark icon) against them in the Extension Read column on the Types editor, indicating that they can be read by other App UIs.
    Description of type-available-extn.png follows
    Description of the illustration type-available-extn.png

Note:

After you've made a variable or constant accessible to extensions, you should avoid renaming its ID. Renaming an ID might break the extensions that use it.