You need to sign in to do that
Don't have an account?
Varun Teja
Create Batch Apex on Account, contact ,Opportunity and case
Create Batch Apex on Account, contact ,Opportunity and case
1.First we have to create One ArchivalTable as a new Object,in that object creating new fields as Date,AcctId,Number Of Contacts Count,Number Of Oppt Count,Number Of Cases Count.
2.Create same fields (Number Of Contacts Count,Number Of Oppt Count,Number Of Cases Count) to know the total how many records have been deleted for Account.
3.Lookup ArchivalTable object with Account Object
4.We have to delete last 7 days records from contact,Opportunity and cases.This job should be done every 7days once.
5.We have to capture how many records have been deleted and insert those details into ArchivalTable object.Same Total number of count deleted to respective Account.
Thanks in Advance
1.First we have to create One ArchivalTable as a new Object,in that object creating new fields as Date,AcctId,Number Of Contacts Count,Number Of Oppt Count,Number Of Cases Count.
2.Create same fields (Number Of Contacts Count,Number Of Oppt Count,Number Of Cases Count) to know the total how many records have been deleted for Account.
3.Lookup ArchivalTable object with Account Object
4.We have to delete last 7 days records from contact,Opportunity and cases.This job should be done every 7days once.
5.We have to capture how many records have been deleted and insert those details into ArchivalTable object.Same Total number of count deleted to respective Account.
Thanks in Advance