Configure RESTful service activity to insert data
You can configure the Restful service activity to insert the data.
You can store the entire output to a single variable of type String, XML, or Data object variable.
For a POST, you can map both request and response to data object variables. The request can accept multiple objects which are combined into a single request before being passed to the REST API call.
You can use single fields of the data object to configure the request or response, such as use SlackUserDetails.Id as a URL parameter or use an expression from the response.
Use the following procedure to configure a RESTful service activity to insert the data.
- On the Verb list, select POST.
-
On the
Type list, select one of the following option:
Option Description XML (default)
Select this option to call the third-party REST API using "application/xml". JSON
Select this option to call the third-party REST API using "application/json". Multipart Form Data
Select this option to call the third-party REST API using "multipart/form-data". - To add a part, select . The Add part dialog box is displayed.
-
In Part name, enter a name for the multipart part.
-
In Part type, select one of the following option:
Part type Description Text In Value, select the down arrow and select the required variable. File -
In the Value field, select the down arrow and select the required variable.
-
On the Mapping type list, select one of the following options, Instance id, Data as base64 string, and Data as binary.
-
On the Mime type list, leave the default value selected or select a value if a specific mime type is required.
-
-
Select Add.
The part is listed under Multipart configuration.
-
Add more parts as needed.
Use edit to update an existing part. Use delete to remove a part.
- Edit the default custom header as needed.
- Handle a response.
- Define a response header.
- Configure error handling.