avanai SAP Connect OData icon

avanai SAP Connect OData

Connect to SAP systems via OData (v0.5.0-beta.7)

Entity → Update

AI-generated

Summary

Update a specific entity in an SAP OData service by specifying its service path, entity set, and entity key, submitting the updated data as a JSON object, optionally using ETag for optimistic concurrency control.

Inputs

  • Authentication — Select the authentication method to connect to the SAP OData service (Basic Auth/None, None, OAuth2). Defaults to Basic Auth.
  • Service (required) — The SAP OData service path to operate on, selectable from a list or entered manually (e.g., /sap/opu/odata/sap/API_BUSINESS_PARTNER/).
  • Entity Set (required) — The entity set within the service to update an entity in, selectable from a list or entered by name or URL.
  • Entity (required) — The key of the specific entity to update, entered as a valid OData key string or extracted from a full entity URL; supports string, numeric, GUID, or composite keys.
  • Data (required) — A JSON object with fields and values to update for the entity. Field names must match the entity's OData properties; nested navigation properties may be included for deep updates.
  • ETag — Optional ETag value for optimistic locking to prevent concurrent update conflicts; use "*" to bypass locking.
  • Options — Advanced options to control SAP-specific data type conversions, metadata removal from responses, cache clearing before execution, and inclusion of execution metrics.

Output shape

a single updated entity record object as JSON

The operation returns the updated entity data from SAP OData service with SAP-specific metadata optionally removed and SAP data types converted to native JavaScript types depending on options. If enabled, execution metrics are included as a _metrics property on the output.

Examples

Example 1: Update customer details in the Business Partner API

Set Service to /sap/opu/odata/sap/API_BUSINESS_PARTNER/, Entity Set to A_BusinessPartner, Entity key to '12345', Data to updated JSON fields for that customer, optionally provide ETag value.

Links

Discussion