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
Sandesh D GanjareSandesh D Ganjare 

How can I mass transfer contacts from one user to another?

shashi lad 4shashi lad 4
Run a script in annonymous block;

sample script;

list<COntact> cList = new list<Contact>();
for( contact c: [select ownerId from contact where ownerId = '<old owner id>']){
    c.ownerId = <new owner Id>;
   cLIst.add(c);
}
update cList;

If you have more than 10000 contacts to transfer than you want  to set limit to 9999 for query and run the script multiple times.

Hope that helps.

thanks
Shashi
Yaswanth KothapalliYaswanth Kothapalli
Hi Sandesh,

Here is the Idea link for the same where in PM from Salesforce said that this is in roadmap and would take some time to get this implemented as an optioned in the Salesforce UI. Apart from the code suggested by Shashi, there are few apps that are available in the appexchange as well for your reference:

Idea Link for the same:
>> https://success.salesforce.com/ideaview?id=08730000000BrrFAAS

App available:
>> https://appexchange.salesforce.com/listingDetail?listingId=a0N300000019LqxEAE

Cheers,
Yaswanth Kothapalli
 
James Robert 20James Robert 20
If you're attempting to transfer your contacts from one Gmail account to another (https://www.cigatisolutions.com/blog/transfer-contacts-from-one-gmail-account-to-another/), there are two different methods available online, with one being predominantly favored by professionals. The professional method involves using the Gmail Backup tool, which is widely considered the most reliable tool for this task. This tool can effortlessly download your contacts from one account and seamlessly restore them to the new one, making it the preferred choice for professionals.