Hritcu Andrei
Hritcu Andrei

Reputation: 172

Query metadata for EntitySet in Dynamics 365 for Operations

When querying https://orgURL/data/Customers. I receive a list with customers.

How can I find out the properties/attributes of a Customer, without querying all metadata -> /data/$metadata

Upvotes: 2

Views: 1438

Answers (2)

mazzy
mazzy

Reputation: 1105

No. The Specification define $metadata for the service root only.

OData services expose their entity model according to [OData-CSDL] at the metadata URL, formed by appending $metadata to the service root URL.

See http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-conventions/odata-v4.0-errata03-os-part2-url-conventions-complete.html#_Toc453752338

Upvotes: 2

10p
10p

Reputation: 6793

If you need to get data for a specific customer you can add a filter to your OData URL, e.g.

https://orgURL/data/Customers?$filter=CustomerAccount eq 'Your_Customer_Id'

Upvotes: 0

Related Questions