Skip to main content

Function: getActivation()

getActivation(activationId, productIds?): Promise<ActivationData | undefined>

Fetches an Activation by ID, and optionally fetches ProductCollectionProducts located via their linked Product ID.

Parameters​

activationId​

string

The ID of the Activation to fetch.

productIds?​

string[]

Optional: An array of Product IDs to locate within the Activation's linked ProductCollection(s). Note that these are Product IDs, not IntegrationProduct IDs.

Returns​

Promise<ActivationData | undefined>

A promise which resolves in an Activation object, or undefined if the Activation could not be located.