Skip to content
Docs

OData Operation

OData Operation calls one operation on an OData service you have imported, and hands its result downstream. The query options an OData service understands — $filter, $select, $expand, $orderby, $top, $skip, $count — are separate typed fields here rather than a query string you assemble by hand. You find it on the node picker’s API & integrations shelf.

The node has one input handle and one output handle.

Import the service first: see OData services. Importing reads the service’s $metadata document and stores every operation it describes; operation then picks one from that list.

Set credential to a saved Connection or Secret. A Connection attaches its resolved credential as request headers; a Secret’s value is sent as the Authorization header. Either overrides an Authorization header you write in headers yourself.

The OData Operation node's settings form, with the fields described below
The OData Operation node's settings form, with the fields described below
FieldTypeDefaultDescription
Operation (operation)string ✦ (required) — The stored OData operation to call.
Entity key (keys)key-value map ✦ (optional) — Values for the entity key, when the operation addresses a single entity.
Filter (filter)string ✦ (optional) — OData $filter expression, e.g. “startswith(displayName, ‘A’) and accountEnabled eq true”.
Fields to return (select)string ✦ (optional) — Comma-separated properties to return, e.g. “id,displayName,mail”.
Related entities to include (expand)string ✦ (optional) — Related entities to embed, e.g. “manager” or “messages($top=5)”.
Sort by (orderby)string ✦ (optional) — Sort order, e.g. “createdDateTime desc”.
Maximum entities (top)integer ✦ (optional) — Maximum number of entities to return ($top).
Entities to skip (skip)integer ✦ (optional) — How many entities to skip ($skip).
Include the total count (count)string ✦ (optional) — Ask the service for the total count alongside the page.
Body (body)string ✦ (optional) — The request body as a JSON object, for create, update, and action calls.
Service root (serviceRoot)string ✦ (optional) — Override the service root the schema was imported with.
Entity set (entitySet)string ✦ (optional) — The entity set to call a bound action or function on.
Headers (headers)header rows ✦ (optional) — Extra request headers to send, as name/value pairs.
Credential (credential)string ✦ (optional) — The saved credential that authenticates the request — a Connection or a Secret.
Timeout (seconds) (timeoutSeconds)integer ✦ (optional) — Maximum seconds to wait for the request before timing out.
Approval (requiresApproval)one of inherit, always, never (optional) — Whether a human must approve this before it runs. “Follow the agent’s approval mode” is almost always right.
On error (onError)string ✦ (optional) — What to do when the request fails: fail the flow, or continue. “Continue” covers an error response, a timeout or dropped connection, a domain that does not exist, and a service root that is empty or not a full URL (nothing is sent). An address the firewall blocks always fails the flow.

Fields marked ✦ accept expressions.

Try this node — run it once against your own workspace, with your credentials, without building a flow first.

keys supplies the entity key when the operation addresses a single entity, for example the id in a by-key read or update. body is the JSON payload for a create, an update or an action.

OData v2 and v4 disagree about several things, and the node applies whichever the imported service uses: $count against $inlinecount=allpages, PATCH against MERGE, a bare GUID against guid'...', and @odata.nextLink against __next. You write the same fields either way.

{
"value": [
{ "id": "8f2c...", "displayName": "Ada Lovelace" }
],
"nextLink": "https://.../users?$skiptoken=...",
"count": 1841
}

value is the payload with the service’s envelope unwrapped, so a downstream expression reads $prev->value whichever OData version answered. A single entity arrives as an object rather than a list.

nextLink and count are always present, and null when the service did not send them. nextLink is what a Page Based pager follows to walk a large collection.

A 204 No Content — the normal answer to a delete and to many actions — is a success with value set to null, not a parse failure.

With onError set to continue, a failure completes with a structured envelope instead of failing the node. See Handle unreliable APIs for the retry and circuit breaker behaviour shared with the other HTTP nodes.

That includes a service root that is empty or is not a full URL — neither the node nor the service gives one with https:// and a host: nothing is sent, and the envelope’s message names the field to set. A private or internal address, a full URL with another scheme such as ftp://, and a domain outside your workspace’s allowed list always fail the run, whatever onError says.

Reading a filtered page of a collection:

  1. Operation: the stored collection read.
  2. Filter: startswith(displayName, '{{ $start->prefix }}') and accountEnabled eq true
  3. Fields to return: id,displayName,mail
  4. Credential: the Connection for the service.
  5. Open More settings and set Sort by to displayName and Maximum entities to 50.
  • The operation must come from an imported service; this node does not call an arbitrary URL. Use REST Request for that.
  • When a service publishes no capability annotations, every query option stays available and the service refuses what it does not support. An absent annotation is read as “unknown”, never as “unsupported”, because OData v2 has no vocabulary for it at all.
  • Outbound requests are firewalled against private and internal addresses, and the workspace’s outbound access list applies.