Activity Forums Salesforce® Discussions Why 'after undelete' trigger is not included in salesforce?

  • Amarkant

    Member
    July 17, 2017 at 3:39 am

    'after undelete' trigger is available in Salesforce but for limited set of objects.

    Following is the list of objects on which after undelete will work :

    Account
    Asset
    Campaign
    Case
    Contact
    ContentDocument
    Contract
    Custom objects
    Event
    Lead
    Opportunity
    Product
    Solution
    Task

    The after undelete trigger events only run on top object. For example, if you delete an Account, an Opportunity may also be deleted. When you recover the Account from the Recycle Bin, the Opportunity is also recovered. If there is an after undelete trigger associated with both the Account and the Opportunity, only the Account after undelete trigger event executes.

  • Parul

    Member
    September 16, 2018 at 5:11 am

    ‘after undelete’ trigger is included in salesforce but it's available in Salesforce only for the limited set of objects. For Example:

    Count the contact on Account in all four DML operation(Insert, Update, Delete, Undelete).

     

     

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos