Cmdlets for OData

Build 25.0.9434

DataFormat Parameter (Connect-OData Cmdlet)

Specifies the formatting of data when interacting with an OData service. The two formats supported are ATOM and JSON.

Syntax

Connect-OData -DataFormat string

Possible Values

AUTO, ATOM, JSON

Data Type

cstr

Default Value

"AUTO"

Remarks

The DataFormat defines the data format (either JSON or XML) for the request body in INSERT, UPDATE, or DELETE (if any) operations and the accepted response format for SELECT operations via the Accept header. It ensures that the driver correctly handles both request and response formats.

This property helps ensure compatibility with the client's preferred format.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434