invokeProcessAction (Client API reference)

Applies to Dynamics 365 (online), version 9.0

Invokes an action based on the specified parameters.

For more information about actions, see Actions overview

Syntax

Xrm.Utility.invokeProcessAction(name,parameters).then(successCallback, errorCallback)

Parameters

Name Type Required Description
name String Yes Name of the process action to invoke.
parameters object No An object containing input parameters for the action. You define an object using key:value pairs of items, where key is of String type.
successCallback Function Yes A function to call when the action is invoked.
errorCallback Function Yes A function to call when the operation fails.

Returns

On success, returns Web API result along with any action output.

Actions overview

Xrm.Utility