invoke( )


Important: This is a handler function. Implement it only as part of the service plugin.


This method is used to execute your action.

Wix calls Invoke when an automation using your action is triggered. The request body includes all the data needed to execute the action including the final values of any dynamic parameters.

There's no need to validate the data in the request body against the JSON schema defined when the action was configured. Wix validates the data before calling this method.

Method Declaration
Copy
Method Parameters
payloadInvokeEnvelope
Returns
Return Type:InvokeResponse | Promise<InvokeResponse>
Did this help?