/crmRestApi/resources/latest/resourceUsers API is giving error to pass the contract info
Summary:
Hi Team,
We are trying to create sales person, bu first creating resource using enpoint - "/crmRestApi/resources/latest/resourceUsers"
Error Message
You need to supply the contract info when adding an assignment for the legal employer <LE NAme> because it's contract enabled. (PER-1532592)
Thanks,
Rahul
Content (please ensure you mask any confidential information):
Request
{ "BusinessUnit": "Business Unit Name", "LegalEntity": "LE Name", "FirstName": "Test_REST", "LastName": "User", "PersonType" : "EMP", "Title":"MR.", "ResourceEmail": "test.rest.user@mail.com", "HireDate": "2024-10-30", "ResourceStartDate": "2024-10-30", "Username": "Test_REST_User", "IndividualRoleCode": "SALES_REPRESENTATIVE"}
Response
You need to supply the contract info when adding an assignment for the legal employer The Company for Cooperative Insurance - Tawuniya because it's contract enabled. (PER-1532592)