Skip to main content
trigger DedupeReminder on Account (after update) {

    for (Account acc: Trigger.New){

        Case c      = New Case();

        c.subject   ='Dedupe this Account';

        c.OwnerId   = '0057F000000tnLj';

        c.AccountId = acc.Id;

        insert c;

    }

}
3 respostas
  1. 30 de out. de 2017, 11:33
    hi mayur 

    use below trigger, it should be on after insert not after update

     

    trigger DedupeReminder on Account (after Insert) {

    for (Account acc: Trigger.New){

    Case c = New Case();

    c.subject ='Dedupe this Account';

    c.OwnerId = '0057F000000tnLj';

    c.AccountId = acc.Id;

    insert c;

    }

    }

    i hope it helps you.

     Let me inform if it helps you and kindly mark it best answer if it helps you so it make proper solution for others

    thanks 

    sfdcmonkey.com 

     
0/9000