REST_SERVICE ()
REST_SERVICE(endpoint, [parameters]) |
API Version | 2.8.1 and higher |
---|
Invokes an external service and stores the response
The invocation to the service is done using HTTP POST
The parameters must be passed in Application/json format
The response expected from the service must be a JSON object and have a predefined format as follows:
{
"result": "value returned by the service",
"error": nil
}
where:
result
: is the result generated from the service (if any)error
: is a message informing about any possible error occurred during the execution of the service.
Input Parameters
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
|
| Yes | The endpoint can be:
| |
|
| No | Parameters sent to the service |
Return value
The value returned by the function is the result
part of the response received from the service.
Execution
When the FORM containing the FORMULA is closed
Examples
Formula | Description |
---|---|
| The function will make a HTTP POST request to the endpoint |
| A partial URL has been specified as the The internal URL is defined in the configuration parameter |