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
Suman MSuman M 

Issue when using Standard Transfer Account Tool

Hi,

I Have a Trigger (UpdateOpportunityTeamHistory) on OpportunityTeamMember, this trigger has actions to be done whenever there is a Delete/Insert happened on the OpportunityTeamMember list. This actions are executed normally as expected in all the other.

In Our case when an Account is transferred using Transfer Account tool, and this in turn updates Opportunity Team  list (i.e.; removing old member X and adding new member Y), in this case only Insert Action in the trigger is executed and the Opportunity Sales Team History is showing only as user Y is added, but the Delete action is not executed in the trigger.

Is there anything related to Transfer Account Tool functionality.

Please help me on this. Thank You
Vinit_KumarVinit_Kumar
As per the salesforce doc,

Operations that do not invoke Triggers include "Cascading delete operations. Records that did not initiate a delete don't cause trigger evaluation."

Hence,the delete Trigger is not invoked innyour scenario.

Please go through the below link for more :-

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_ignoring_operations.htm