‎2025 Jan 30 7:25 PM - edited ‎2025 Jan 30 7:26 PM
My goal: be able to set the Work Email of a new hire via OData API.
I have created a Custom OData Service in our SAP BBD test environment. The service is uploaded from this example file:
https://github.com/SAP-samples/byd-api-samples/blob/main/Custom%20OData%20Services/khemployee.xml
I can confirm that the service is working -- using Postman, I am able to query employees, and I am also able to patch the emails of EXISTING users without issue.
My problem is that, when an employee is first hired, not only do they not have a Work Email address, but the "WorkplaceAddressCollection" node for their user does not even exist. And I do not know how to initiate/create this for an individual user.
Example:
Existing user 264 has a WorkplaceAddressCollection ID of ADGEN34D53E6A974B31EDEBEEE2838C75057DC. If I reference that ObjectID with a PATCH call, am I able to modify the values with whatever I put in the body of my request: (https://xxxxxxxxx.sapbydesign.com/sap/byd/odata/cust/v1/khemployee/WorkplaceAddressCollection('ADGEN...
However, new user 419 has no WorkplaceAddressCollection or WorkplaceAddressInformation ObjectID yet, so I have nothing to reference when trying to insert a new Workplace EMail.
**Note: if there is a way to accomplish this via SOAP API instead, I'd prefer that, but I could not see any way to do so**
Request clarification before answering.
Hey,
Employee object behind scene probably has different associated objects for employment details.
Can you try standard SOAP webservice? Here's link to the ticket.
https://userapps.support.sap.com/sap/support/knowledge/en/2654330
Thanks,
Anand Shukla
anand@crossoverit.consulting
CrossOver IT Consulting Services LLP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://userapps.support.sap.com/sap/support/knowledge/en/3234367
Looks like documentation is not released. Usually Application User Management - Service Explorer documentation is provided.
Your best recourse is to configure comm scen, download WSDL, and playaround with request payload.
Thanks,
Anand Shukla
anand@crossoverit.consulting
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.