Symptom
How to export attachments using 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 HXM Suite
- SAP SuccessFactors Recruiting Management
Resolution
You can get Attachments using OData API. The query will vary dependending on the source you wish to obtain the data from. Below is an example of an attachment field from JobApplication entity. fileContent entry will be the one that will pull the data.
NOTE: The File-Content would always be Base64 encoded string and in case you want the file in original format, you will have to develop a logic to decode it in order to get the file in the original format.
See Also
Keywords
odata, api, attachment, recruiting, resume, filecontent, cover, letter. , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , How To