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
ntnngntnng 

Problem setting LeadOwner during data loading

While loading data into Lead object using Apex Data Loader, the LeadOwner field gets populated with the id used for data laoding. I am able to set other user as LeadOwner by loading the 18 characters long salesforce id of the user in OwnerId field. How can i change the LeadOwner to some other user during data loading without using salesforce ids? Thanks in advance.
jaganjagan

As the owner is a look up field it will accept only id's during data load or If you want to keep the same owner for all the records while loading you can write a before update trigger and change the ownerid field inside the trigger.

Hope this helps!!

Regards,

Jagan