2 weeks ago
How can I get employee image from SAP C4C odata?
Hi monokizsolt7,
the Employee Image is stored as Attachment, which is not part of the standard OData service (https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/employeeanduser/$metadata)
However, with some clicks, you can create a custom OData service for that:
This creates the service (e.g. https://myxxxxxx.crm.ondemand.com/sap/c4c/odata/cust/v1/employeeimages/$metadata)
Now you can filter for an employee by its EmployeeID or BusinessPartnerInternalID and expand the AttachmentFolder node, where the Image is stored as Base64 in the Binary property:
The result will look something like this:
(added &$format=json to the url to make it easier to read in comparison to XML).
Hope that helps.
Best regards,
Felix
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.