Waiting for engine...
Skip to main content

useFetchIntegrationPackInstance()

useFetchIntegrationPackInstance(

integrationPackInstanceId: string
):
{ integrationPackInstance, isLoading, error }

Retrieves a specific Integration Pack Instance by its ID using the Boomi client from plugin context. Ensures the fetch runs only once per component mount.

Throws

Sets error state if the Boomi client is not initialized or if the ID is missing.

Parameters

integrationPackInstanceId

The ID of the Integration Pack Instance to fetch.

Returns

{ integrationPackInstance: null | IntegrationPackInstance; isLoading: boolean; error: null | string; }

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

integrationPackInstance
IntegrationPackInstance

isLoading
boolean

error
string

On this Page