SAP Knowledge Base Article - Public

3458596 - Cannot use the "Count" parameter with the ChangeDocumentCollection/changedoclist API

Symptom

When using the /$count parameter with the ChangeDocumentCollection/changedoclist API, you always get the count as "Zero"

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP Cloud For Customer

Reproducing the Issue

  • First run the ChangeDocumentCollection URL without the count parameter and a required filter and you will see that data exists

https://<tenantId>/sap/c4c/odata/v1/changedoclist/ChangeDocumentCollection?$filter=BusinessObject eq 'Enter the required business object' 

  • Run the same URL with the "$Count" parameter and it results with "Zero"

https://<tenantId>/sap/c4c/odata/v1/changedoclist/ChangeDocumentCollection/$count?$filter=BusinessObject eq 'Enter the required business object' 

Cause

Due to limitations within the ChangeDocumentCollection API, $count is not supported in this API

Resolution

This is the expected behavior

Keywords

Change document, ChangeDocumentCollection, changedoclist, $count, Count, Parameter , KBA , LOD-CRM-INT-API , OData API (C4C Only) , LOD-LE-OSR , Outsourcing , Problem

Product

SAP Cloud for Customer core applications 2402