SAP Knowledge Base Article - Public

2687413 - How to Access the External ID Mapping of Accounts and Products Using OData

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

  1. 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).
  2. See there is no ExternalIDMapping collection or navigation property listed in the service metadata.

Resolution

You can use the ObjectIdentifierMappingCollection in C4CODATAAPI for this purpose. Here is the documentation with more details:

https://help.sap.com/doc/d0f9ba822c08405da7d88174b304df84/CLOUD/en-US/index.html#/topic/ObjectIdentifierMapping

See Also

OData API V2 Reference

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