OData services
An OData service is imported from its $metadata document. Publicus reads
the document, works out every operation the service exposes, and stores them so
an OData Operation node can call one by name.
OData describes a type system rather than a list of URLs, so the addresses are
derived from the service’s own conventions at call time. That is what lets the
query options — $filter, $select, $expand, $orderby, $top, $skip,
$count — stay separate typed fields on the node instead of a query string you
assemble by hand.
Importing a service
Section titled “Importing a service”From OData services, the OData tab of APIs under Services, create one and fill in:
- Name — how you will recognise it later.
- Service root — the base URL the service is addressed at.
- OData version — this decides both the URL conventions and the metadata format. It matters: a version 2 document read as version 4 parses to nothing rather than to something subtly wrong.
- Where is the CSDL? — one of three answers below.


Where the document comes from
Section titled “Where the document comes from”| Source | Use it when |
|---|---|
| Paste the document | You have the $metadata document in hand. It is stored exactly as given. |
| Fetch it from a public URL | The metadata endpoint is publicly reachable. The URL ends in $metadata. |
| Fetch it as a connection | The metadata endpoint needs a credential. Pick a Connection and the document is fetched with it. |
Fetching happens while you are still on the form, so a wrong URL, a refused credential or an unfilled placeholder comes back as an error on the field rather than as a saved service that turns out to be empty.


With a connection selected, the URL may contain placeholders such as
{division} or {region}, filled from that connection’s configuration.
What you get
Section titled “What you get”Importing parses the document into one row per operation. Open the service and switch to its operations to see them, and to search by name.


Two things about the parse are worth knowing:
-
A service that publishes no capability annotations keeps every query option. Absence is read as “unknown”, never as “unsupported” — OData version 2 has no vocabulary for capabilities at all, so a service that says nothing would otherwise become one you cannot filter.
-
A service that parsed to nothing is findable. The list has a filter for exactly that, because an empty service usually means the wrong version was chosen or the document was not what it claimed to be.


Re-importing
Section titled “Re-importing”Saving re-parses when the document itself changed, or when nothing has been parsed out of the service yet. Renaming a service does not re-parse it.
Re-ingest on the edit page re-parses unconditionally. Use it after the service publishes a new version of its metadata.
Using it in a flow
Section titled “Using it in a flow”- OData Operation calls one operation as a flow step, with the query options as fields.
- OData Operation Pack exposes several operations to an agent as tools. Because a stored operation records whether it reads or writes, a listing tool in a pack does not inherit the approval a delete needs.
Both authenticate with a Connection or a Secret chosen on the node, which is separate from whatever credential read the metadata.
Related
Section titled “Related”- GraphQL services: the same idea for GraphQL.
- OpenAPI schemas: for REST specifications.
- SOAP services: for WSDL documents.
- Connect a service: setting up the credential.