Send HTTP post request
This Trigger sends an HTTP POST request to a specified URL. It can be used to send any XML (i.e. SOAP) or other POST request to a third party containing information and instructions gathered from Platform record data. To use this Trigger, select:
- Enable retry checkbox if you want to enable retry options for the
trigger. By default, this option is disabled. If you select the Enable
retry checkbox, you must input values into the following mandatory fields.
- Status Codes — Set status code on which you want the HTTP retries to happen. It can be a comma separated values of status codes as well as a range of status codes. For example, 302-400,500.
- Number of Retries — Set the number of retries allowed for the trigger. The maximum number of retries must not exceed 3.
- Retry Interval — Set the interval
(ms) between two subsequent retries. The maximum retry timeout value (Retry Interval * Number
of retries) can be configured using
MaxHttpRetryTimeoutInMins
shared.property. Default value ofMaxHttpRetryTimeoutInMins
is 1 min.
- A Document Template to generate the request with an .XML extension
- The target URL to send the HTTP POST request to
- Encoding for selected template: XML, URL, or other
- The Content Type (text/xml by default)
- Up to 5 HTTP headers (names and values)
- Timeout (in ms) for HTTP request
- Check if you want this Trigger to throw an exception if the HTTP return code is out of the range 200-210 indicating success.
You can immediately debug your Trigger by selecting a record to debug against (click the icon). This sends a generated HTTP POST request to the specified URL and displays results in a popup window.
Note:
- You must create at least one text-based Document Template before you can use this Trigger.
- The HTTP POST Trigger does not add a header or footer to your XML document.
- Result of HTTP POST request is stored in shared variables, see HTTP triggers.