Symptom
How to get the file content directly with the expected file type from the 'Attachment' entity using the SF OData API
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 SuccessFactors HCM Suite
- Attachment Odata API entity
Resolution
You can implement the $value extension for Attachment to get the file content directly with the expected file type.
Request example: Attachment(4040L)/$value
See Also
Keywords
Attachment, $value, pdf, file content , KBA , LOD-SF-INT-ODATA , OData API Framework , How To
Product
SAP SuccessFactors HXM Core 2311