SAP Knowledge Base Article - Public

2519210 - How to Upload Profile Photos using Integration Center - OData API Photo Entity

Symptom

Upload Employees profile photos through Integration Center using ODATA API, Photo entity / SFOData.Photo from files stored on an SFTP repository.

"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 Integrations

Resolution

Prerequisite / Requirements

- Host SFTP Service (Repository for the photos for upload)

- Successfactors Integration Center (User with API admin Access)

Procedure

1. Need to create a CSV file containing the field userId, phototype, photo, and photoName (Basic Photo entity fields).
This will be the sample CSV file on your Integration Center job.

   1.jpg

2. Update the SFTP source folder with the CSV file containing the list of employee for upsert.
Under ‘photo’ column ensure that the filename of the photos uploaded on the source folder is same with the file on the list (as well as the extension)

Note: Support files for photo and photoname fields are *JPEG, *PNG, *BMP

   2.JPG

3. Map the fields in the integration based from the uploaded CSV Sample. (take note of .csv file name from step 1)

   3.jpg
4. Maintain the source and post processing folder where the files scheduled to be consumed are stored in the SFTP.

    4.jpg

Result :Photo will be inserted into the corresponding phototype selected.

Result.JPG

  • Additional Info for photoTypes

     Phototype.jpg

See Also

SAP SuccessFactors HCM Suite OData API: Reference Guide

Keywords

Upload Photo, Upsert Photo Entiity, Odata API, SFOdata.Photo, photoType, Binary64, integration, job, photo, picture, profile, odata, import. , KBA , LOD-SF-INT-INC , Integration Center , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , How To

Product

SAP SuccessFactors HCM suite all versions