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

  1. 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'

  2. 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' 

Resolution

This is the expected behavior. Due to limitations within the ChangeDocumentCollection API, $count is not supported in this API.

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 all versions