Symptom
You want to access the External IDs from replicated Accounts and Products using the OData API V2 service -> C4CODATAAPI, but you cannot find the ExternalIDMapping collection or the navigations.
Environment
-
SAP Cloud for Customer.
Reproducing the Issue
-
Open the URL https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/$metadata in Google Chrome, Postman tool or any other tool that works with OData REST APIs(myXXXXXX represents the URL of your C4C system).
-
See there is no ExternalIDMapping collection or navigation property listed in the service metadata.
Cause
The ExternalIDMapping collection is not yet available in the C4CODATAAPI service.
Resolution
You can access the ExternalIDMapping collection by using the service C4CODATA (although the service is marked as deprecated, it will only be retired on February of 2020).
To get the external ID mappings you can use the following URLs:
- Account External ID Mapping -> https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codata/AccountCollection?$expand=ExternalIDMapping
- Product External ID Mapping -> https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codata/ProductCollection?$expand=ExternalIDMapping
See Also
Keywords
External ID Mapping, ExternalIDMapping, ProductCollection, AccountCollection , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem
Product
SAP Cloud for Customer core applications all versions