SAP Knowledge Base Article - Public

2657973 - How to to use insert or update operation on SFOdata.Photo Entity in Successfactors

Symptom

  • You want to insert/update user's photo in BizX system
  • While trying to do the opration you land up into following error "Cannot cast class java.lang.String to class java.lang.Integer"

Environment

Successfactors

Odata API

Cause

 The format of the request payload is wrong

Resolution

Please follow the example formats attached in the "attachment section"

For Insert Scenario --> Insert_photo.zip

For Upsert Scenario --> Upsert_photo.zip

Note: While sending the payload to the photo field, please pass the same in base64encoded format

See Also

 Odata API reference guide

Keywords

  • How to create a photo using photo api?
  • How to update photo using photo api?
  • can we update photo in successfactors?
, KBA , how to create a photo using photo api? , how to update photo using photo api? , LOD-SF-INT-MDF , Core MDF , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , How To

Product

SAP SuccessFactors HCM Core all versions

Attachments

Insert_Photo.zip
Upsert_photo.zip