SAP Knowledge Base Article - Public

3527499 - OData Photo Entity - photohash

Symptom

There is a property of the Photo entity name photohash. What scenarios can the property photohash has be used for.

Environment

  • SAP SuccessFactors HCM Suite

    • OData API

Reproducing the Issue

1. The user can see the property photohash in the OData data dictionary

2. The user has tried to query the property but they are not seeing any results

Cause

  • The photoHash property only works for USER_EXPRESSIVE_PHOTO (photoType=14)
  • It calculates the hash(sha256) of photo content soley for photoType 14
  • Photos of other types will not return any value for this field.

Resolution

OData API call - PhotoType 14 must be selected in the query:

https://sfdcapiurl.com/odata/v2/Photo?$select=photoHash,photoType,userId&$filter(userId eq testUser and photoType eq 14)

   },
        "photoType": 14,
        "userId": "testUser",
        "photoHash": "4d470639###############################"
   }

Photohash only works in conjunction with phototype 14.

Keywords

KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-INC , Integration Center , Problem

Product

SAP SuccessFactors HXM Suite 2305