Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to configure as sales person an employee created with the workers API

edited Oct 31, 2023 8:48AM in Sales 6 comments

Summary:

We are using the workers API to create records for all employees (/hcmRestApi/resources/latest/workers). We want to use these employees as sales reps for receivables invoices, so they need to be set up as sales persons. We kinda found a way of doing that by creating the employee as resource user using /crmRestApi/resources/latest/resourceUsers and then submitting a SOAP request to crmService/SalesPersonService for the service mergeResourceSalesrep.

Although it initially seems to work, it doesn't feel right. It's strange that we need to use a SOAP call when everything else is done with REST. There is also a side effect: Resource users created with /crmRestApi/resources/latest/resourceUsers cannot be retrieved using a query on PersonId, only with a query on Username.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!