Overview
Deprecated since 1.2.0 — Use
pfx-restfor new OData integrations.
The pfx-odata2 component provides CRUD operations against OData v2 endpoints with Basic Auth support. It is deprecated — pfx-rest covers the same use cases with more flexibility.
URI pattern: pfx-odata2:method[?options]
Methods
|
Method |
Description |
|---|---|
|
|
POST a new entity |
|
|
GET entities (list or single) |
|
|
PATCH/PUT an existing entity |
|
|
DELETE an entity |
Parameters
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
String |
— |
OData v2 service root URL |
|
|
String |
— |
Entity set name (e.g. |
|
|
String |
— |
Entity key for single-record operations |
|
|
String |
— |
Basic auth username |
|
|
String |
— |
Basic auth password — use |
|
|
String |
— |
Connection reference (uses default if omitted) |
|
|
boolean |
|
Unwrap |
OData system query options ($filter, $select, $orderby, $top, $skip, $inlinecount) can be passed as URI parameters.
Output headers set by the component:
|
Header |
Description |
|---|---|
|
|
ID of the entity returned/created |
|
|
Total count (when requested) |
|
|
Pagination link for next page |
|
|
Delta link for incremental sync |
Migration to pfx-rest
Replace pfx-odata2:read with pfx-rest:get + OData query parameters in the URL:
<!-- Old (deprecated) -->
<to uri="pfx-odata2:read?serviceUrl={{sap.url}}&entity=Products&$top=100"/>
<!-- New (pfx-rest) -->
<to uri="pfx-rest:get?url={{sap.url}}/Products?$top=100&username={{sap.user}}&password={{sap.pass}}"/>
<to uri="pfx-json:unmarshal"/>