SAP Knowledge Base Article - Public

2283730 - How to query original photo size using OData API "Photo" object


When querying Odata API "Photo" object, the size of the photo comes back as 180*240 pixel when the image was uploaded/upserted was in a larger format.


SAP Successfactors


Photo size in Bizx system is controlled by a fixed number of variations.

For user uploaded photo, the  system will resize them to not exceed the max size 180*240.


The system stores the original photo uploaded with photo type equal to 20.

When querying, you need to query and specify "phototype" = 20.


Example Query:

<<<Successfactors API URL >>>/odata/v2/Photo?$format=json&$top=5&$select=height,lastModified,photoName,photoType&$filter=photoType eq 20

Example:$format=json&$top=5&$select=height,lastModified,photoName,photoType&$filter=photoType eq 20


Example Response: 

"d" : {
"results" : [
"__metadata" : {
"uri" : ",userId='00009861')", "type" : "SFOData.Photo"
}, "photoType" : 20, "height" : 580, "lastModified" : "\/Date(1436532722000)\/", "photoName" : null


Photo, pixel size, pixel, OData API, Photo Type , KBA , LOD-SF-INT , Integrations , Problem


SAP SuccessFactors HXM Suite all versions