connector.rsc/flowexecute endpoint.
Required Parameters
- connectorId: The Id of the first connector in the flow.
Optional Parameters
- WorkspaceId: Id of the workspace where the flow is located. If not specified, the operation uses the Default workspace.
- MessageData: The incoming message data as UTF-8 text.
- MessageName: The file name of the incoming message.
- HeaderName#: A comma-separated list of message header names to include on the message.
- HeaderValue#: A comma-separated list of message header values to include on the message.
- InputEncoding: The format of the Input message data. Available values are UTF-8, BASE64, and HEX. The default is UTF-8.
- OutputEncoding: The format of the Output message data. Available values are UTF-8, BASE64, and HEX. The default is UTF-8.
Output Parameters
- Result: The result. Available values are: Success, Error, Warning, Pending, and Skipped.
- MessageData: The output message data as UTF-8, if the Result is not Error, Pending, or Skipped.
- MessageName: The file name of the output message.
- ErrorMessage: The detailed error message if the Result is Error or Warning.
- LastConnectorId: The Id of the last connector in the flow.
- LastWorkspaceId: The Id of the last workspace in the flow.
- MessageId: The message Id.
Example
This example shows the inputs and the outputs available to this operation in a Script connector (the trigger connector). It defines the first connector in the flow by specifying the connector Id and the workspace where it can be found. It also defines a filename for the file being processed through the flow, as well as its contents. Finally, theflowExecute operation is called using an admin API user and authtoken with the connector.rsc/flowexecute endpoint.