Universal API Connector updated
Universal API Connector version 2.2.11 adds support for base64 data in the request body for connector actions.
To send base64 data in a request body:
- In workflow designer, add the Universal API action (for example, Insert or Update).
- Configure basic action settings as required for the API.
- Ensure “Apply Map” is checked and configured. This will allow a Visual Data Map to be used to configure the request body.
-
Open the action mapping in Visual Data Mapper.
-
Add a node to the request body called “Base64FileContents”. This may be done by using the sample XML below:
<UniversalAPIOperationalConfig> <RequestBody> <Attachments> <Title>sample.txt</Title> <Base64FileContents>UEsDBBQAAAAA==</Base64FileContents> </Attachments> </RequestBody> </UniversalAPIOperationalConfig>
- Map the data from the source, or use “Constant” to assign a workflow variable to the Base64FileContents data.
For more details, see Universal API Connector Reference.