Waiting for engine...
Skip to main content

useFetchAccountGroup()

useFetchAccountGroup():

{ accountGroupId, isLoading, error }

A React hook that queries the Boomi API for the current account group based on the accountGroup name provided in the plugin context. It returns the account group ID along with loading and error states to allow consumers to react to the query lifecycle.

Throws

If the Boomi SDK or required configuration values are missing.

Returns

{ accountGroupId: null | string; isLoading: boolean; error: null | string; }

An object containing the resolved account group ID (if found), a loading flag, and any error message.

accountGroupId
string

isLoading
boolean

error
string

On this Page