You need to sign in to do that
Don't have an account?
Divyansh Verma 10
triggers--undelete
Hi,
I am getting an error in below code. Could you please help me out.
if(trigger.isUnDelete && trigger.isafter)
{
set<Id> co=new set<Id>();
for(Account a1:trigger.new)
{
co.add(a1.id);
}
list<Account> acc=[select id,name,Number_of_Contacts__c from Account where id in: (co) ALL ROWS];
undelete acc;
}
Thanks.
I am getting an error in below code. Could you please help me out.
if(trigger.isUnDelete && trigger.isafter)
{
set<Id> co=new set<Id>();
for(Account a1:trigger.new)
{
co.add(a1.id);
}
list<Account> acc=[select id,name,Number_of_Contacts__c from Account where id in: (co) ALL ROWS];
undelete acc;
}
Thanks.
It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!
https://jbshelpdesk.secure.force.com (https://jbshelpdesk.secure.force.com)
Thanks,
Jarvis SFDC team