Mass Transfer Records in Salesforce Lightning

Mass Transfer Records in Salesforce Lightning

1 Go to Data –> Mass Transfer Records.

2. Select the object for transferring owner.

Note:
1. To
transfer any records that you do not own, you must have the required
user permissions as well as read sharing access on the records. 

2. Triggers and other processes will be executed.

Sample Trigger:

trigger AccountTrigger on Account ( after update ) {
    
    for ( Account acc : trigger.new ) {
        
        system.debug( 'Account Id is ' + acc.Id );
        system.debug( 'Old Owner Id is ' + trigger.oldMap.get( acc.Id ).OwnerId );
        system.debug( 'New Owner Id is ' + acc.OwnerId );
        
    }

}

Sample Transfer:

Debug Log Statement:

Leave a Reply