An OData function is an operation that can do whatever the designer of the OData endpoint has decided. It must, however, not change any data, unlike an OData action.

Functions can be found in it's own section in the operation tree

These functions are 'unbound' - meaning that they are not tied to a particular entity.

There are also 'bound' functions, which are bound to an entity or an entity set.


While the output of a function depends on the action itself, the output is always a record containing the members listed below along with whatever the function itself outputs.

  • StatusCode - the HTTP status code returned from the OData endpoint, typically 200 if the operation was successful. A value of 0 or -1 indicates a problem in the connector (i.e, no request sent to the OData endpoint)

  • ErrorMessage - has no value if the operation succeeded, otherwise a description of what when wrong

  • HasFailed - simple value containing true if operation failed

  • Headers - is omitted by default, but if included, contains all HTTP headers returned by the OData endpoint

Last updated