Waiting for engine...
Skip to main content

useFetchIntegrationPackEnvironmentAttachment()

useFetchIntegrationPackEnvironmentAttachment(

integrationPackInstanceId?: string
):
{ attachedEnvironments, isLoading, error }

Retrieves all environments attached to a specific integration pack instance. First queries the attachment records, then fetches full environment objects for the collected environment IDs.

Throws

Sets error state if the Boomi client is not initialized or when the required integration pack instance ID is missing.

Parameters

integrationPackInstanceId

Optional integration pack instance ID to query attachments for.

Returns

{ attachedEnvironments: Environment[]; isLoading: boolean; error: null | string; }

Hook API with the fetched environments, loading flag, and any error message.

attachedEnvironments
Environment

isLoading
boolean

error
string

On this Page