odata_metadata
Fetch OData $metadata and reduce it to a compact field map JSON, returning an inline map for comparison without loading raw EDMX; lists navigation properties for entity scoping.
Instructions
Fetch OData $metadata (EDMX) and reduce it to a compact field map.
entity="" pulls the whole service metadata (large — hundreds of entity types); entity="EmpJob" pulls just that entity set. The full {entity: {field: attributes}} map is written to a JSON file, and a small map is returned inline as well, so two instances can be compared without ever loading raw EDMX into the conversation. When entity is given, its navigation properties (name, target entity type, filterable) are listed too — entity-scoped $metadata doesn't carry them, so this resolves them from the full service $metadata instead (fetched once per company_id per process, then cached); a lookup failure is reported as a warning and never blocks the field output above. Use the navigation names to scope filters into other entities via $filter (see the server's "Scope with EmpJob first" guidance and odata_query's docstring) instead of pulling whole entity sets and joining locally.
On a v4 tenant, entity is a service path: its root for the whole service ("talent/cdp/Learning.svc/v1"), or root plus entity set for one (".../Learning.svc/v1/Items"); both read that service's $metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | No | ||
| company_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||