function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aravind swaminathanaravind swaminathan 

Getting "Business Unit must be defined for a User" error in upsert when trying to add new user

I am passing companyname,department,division etc to upsert method to insert new user.But am getting "Business Unit must be defined for a User".Can you help me with this?

Thanks.
Amit Chaudhary 8Amit Chaudhary 8
PLeasse check you have any validation on user object if yes then pass the data according to validation.

I guess you need to add "Business Unit " on user