Running Procedures

Version 22.0.8486


Running Procedures

Version 22.0.8486


Actions are OData functions which do not correspond to traditional CRUD operations. The available operations can vary from data-source to another, and can be used to enable additional control over access to the data or to enforce business logic within the data. Actions may have side-effects on the data-source. Actions must be imported as Procedures in order to be accessible in the Connect ODAta API, see Managing OData Entities for more details on this.

Running an Action.

Actions must be executed as an HTTP POST request. The following is an example invocation of an action:

POST https://myconnectserver/odata.rsc/WashCar/
{
  "Wax": "true"
}

Here is the corresponding response:

{
  "Complete": "true"
}

Use URL Parameters as Input

In cases where the client does not support the HTTP POST method, the Action can be invoked using the URL parameters @x-http-method. The inputs for the Action can then be specified as additional URL parameters:

https://myconnectserver/odata.rsc/WashCar?@x-http-method=POST&URLparam1=my_url_parameter1&urlparam2=my_url_param2