SAP Knowledge Base Article - Public

2577232 - How to Fetch Last Changes on Contact Collection Using OData


You want to use OData to query the latest Changed On date from changes made on Contacts.


SAP Hybris Cloud for Customer 1711 or higher.

Reproducing the Issue

  1. Query the ContactCollection from c4codata service using your internet browser:$filter=ContactID eq 'XYZABC'
  2. You will not see the latest dates on Changed On property.


Changes performed on contacts will not update the 'Changed On' date present in ContactCollection, as this property is a part of the business object Business Partner and Contacts object is a cross business object relation under that.


To fulfill this requirement you can create a new Custom OData Service on business object 'BusinessPartner' and add the 'Last Changed On' property through the following path: DefaultIsContactPersonForBusinessPartnerRelationship --> SystemAdministrativeData --> LastChangeDateTime.
The above property will have the 'LastChangedOnDateTime' of the values you have changed on Contacts object.

See Also

If you need help to create Custom OData Services, please refer to the link below:


odata, custom, contact, changedon, contactcollection , KBA , LOD-CRM-INT-API , OData API (C4C Only) , LOD-LE-BP-BP , Business Partner , How To


SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions