Waiting for engine...
Skip to main content

useUpdateMapExtensions()

useUpdateMapExtensions():

{ updateMapExtensions, isUpdating, updateError, +1 more }

Provides an imperative updateMapExtensions function that posts a single EnvironmentMapExtension update. Accepts JSON payloads and handles either JSON or XML responses from Boomi.

Throws

If required inputs are missing or the update request fails.

Returns

{ updateMapExtensions: (envMapExtension: EnvironmentMapExtension) => Promise<EnvironmentMapExtension>; isUpdating: boolean; updateError: null | string; updatedExtensions: EnvironmentMapExtension[]; }

Hook API exposing the updater function, loading/error state, and last updated extensions.

isUpdating
boolean

updateError
string

updatedExtensions
EnvironmentMapExtension

updateMapExtensions()

updateMapExtensions: (envMapExtension: EnvironmentMapExtension) => Promise<EnvironmentMapExtension>

Parameters

envMapExtension
EnvironmentMapExtension

Returns

Promise<EnvironmentMapExtension>
On this Page