Skip to content

Function: getAddonProperty() ​

ts
function getAddonProperty(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  key?: string;
  value?: unknown;
}>;

Defined in: src/cloud/api/appProperties.ts:48

Returns the key and value of an app's property. The property key connect_client_key_019cdff3-8bfb-71fe-9628-875b700aebb8 is reserved. It returns a synthetic, read-only property containing the Connect clientKey for the requested tenant. This is intended for Forge apps with app.connect.key to retrieve the Connect client key during migration.

Permissions required: Only a Connect app whose key matches addonKey can make this request. Additionally, Forge apps can access Connect app properties (stored against the same app.connect.key).

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ addonKey: string; propertyKey: string; }-
parameters.addonKeystringThe key of the app, as defined in its descriptor.
parameters.propertyKey?stringThe key of the property.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; key?: string; value?: unknown; }>