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
suhas rathodsuhas rathod 

how to assign account to perticular user

how to assign account to perticular user
Gigi.OchoaGigi.Ochoa
Try updating the OwnerId field.  You will need to determine who this particular user is.

Account.OwnerId = ParticularUser.Id;
AshwaniAshwani
Account, Lead and Contact have a field named "owner" just assign the userid to that field. It will be assigned to that user. Technically it has been explained in post above. However all sobjects have owner fields.