SAP Knowledge Base Article - Public

3625298 - Inconsistent availability of "SizeInkB" field in AttachmentFolderCollection across different business objects

Symptom

  • The "SizeInkB" field is inconsistently available in the AttachmentFolderCollection of different Business Objects (BOs) in the OData API.
  • Some BOs, such as SalesQuoteAttachmentFolderCollection and SurveyAttachmentsCollection, provide the "SizeInkB" field, while others, such as OpportunityAttachmentFolderCollection and LeadAttachmentFolderCollection, do not.

Environment

  • SAP Cloud for Customer
  • OData API

Reproducing the Issue

  1. Query the AttachmentFolderCollection of different Business Objects (e.g., Quote, Task, Opportunity, Order, Lead) using the OData API.
  2. Observe that the "SizeInkB" field is available for some BOs but missing for others.

Cause

  • Each Business Object (BO) has its own development team and logic, leading to variations in the fields available in their respective AttachmentFolderCollections.
  • The "SizeInkB" field is not uniformly implemented across all BOs.

Resolution

(1) As a workaround, calculate the size of attachments using the "Binary" property:

  1. Decode the "Binary" property, which is in base64 format.
  2. Calculate the size of the decoded binary data.

(2) Refer to the respective documentation for each BO to understand its supported fields:

(3) Submit a feature request for standardizing the "SizeInkB" field across all BOs via the Customer Influence portal: Customer Influence Portal.

See Also

Keywords

OData, AttachmentFolderCollection, SizeInkB, Business Objects, SalesQuoteAttachmentFolderCollection, OpportunityAttachmentFolderCollection, LeadAttachmentFolderCollection , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Bug Filed

Product

SAP Cloud for Customer core applications all versions