GetAddonInfo

Returns a JSON object with information about an add-on.

Format 

GetAddonInfo ( addonID )

Parameters 

addonID - text that specifies the Universally Unique Identifier (UUID) of an installed or packaged add-on.

Data type returned 

text

Originated in version 

19.2.2

Description 

This function searches for an add-on whose UUID matches the addonID parameter and returns information about the add-on. The search includes:

  • installed add-ons, which are in the current file

  • packaged add-ons, which aren't currently installed but are available to FileMaker Pro to be installed

If you're developing an add-on, you can use this function to get information at runtime about installed and packaged add-ons. For example, you can use the GetLayoutObjectOwnerInfo function to get the ID of the add-on that contains a given layout object, then pass that add-on ID to this function to get the add-on's name.

In the following example of the returned JSON object, the specified add-on was installed from the packaged add-on named "Activity Timeline" and renamed "Renamed Activity Timeline."

Copy
{
    "APIVers" : 1,
    "Installed"
    {
        "UUID" : "38EA3124-9CFD-4490-A634-A0A72A613145",
        "Name" : "Renamed Activity Timeline"
    },
    "Package"
    {
        "UUID" : "C2ABC033-D971-43A1-8C6D-085B90F9EA91",
        "Name" : "Activity Timeline"
    }
}

The following table describes the elements in the returned JSON object.

JSON element

Description

APIVers

Numeric value for the version of this JSON object's structure. If the structure of this JSON object changes in a subsequent release, this number will change.

Installed.UUID

UUID of the add-on, if installed

Installed.Name

Name of the add-on, if installed

Package.UUID

UUID of the packaged add-on

Package.Name Name of the packaged add-on

Example 1 

Returns the JSON object shown above.

Copy
GetAddonInfo ( "38EA3124-9CFD-4490-A634-A0A72A613145" )