SAP Knowledge Base Article - Public

3600541 - How to perform date-wise extraction for the OData entity ChangeDocumentCollection

Symptom

  • The business requires extracting the changes made to tickets during the date range 2022.10.07 - 2022.10.14.
  • How to perform date-wise extraction for the OData entity ChangeDocumentCollection?

Environment

SAP Cloud for Customer

Resolution

Let's say you want to filter the changes made on the date range 2022.10.07 - 2022.10.14. Please use the URL:

https://my123456.crm.ondemand.com/sap/c4c/odata/v1/changedoclist/ChangeDocumentCollection?$filter=BusinessObject eq 'ServiceRequest' and (ChangeDateTime ge datetime'2022-10-07T00:00:00' and ChangeDateTime le datetime'2022-10-14T00:00:00')

Additionally, if you want to extract the data using MS Excel, please reorder the parameters. For instance, to extract data for the date range 2022.10.07 - 2022.10.14, use the URL below.

https://my123456.crm.ondemand.com/sap/c4c/odata/v1/changedoclist/ChangeDocumentCollection?$filter=(ChangeDateTime ge datetime'2022-10-07T00:00:00' and ChangeDateTime le datetime'2022-10-14T00:00:00') and BusinessObject eq 'ServiceRequest'

, where 123456 represents the tenant number.

See Also

Keywords

Change Log, ChangeDocumentCollection, ChangeDateTime, le, ge, OData, Change history, filter , KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To

Product

SAP Cloud for Customer core applications all versions