+ Start a Discussion
lokesh reddy 7lokesh reddy 7 

Help in apex scheduler

Hi ,

I have one requirement where i need to pull the data from campaign to one custom object depending upon the some conditions .
Those conditions are:

Select id,subject ,createddate from task where whoid in (select leadid from campaignmember ) and createddate > campaign.startdate 
this is my condition .Depending upon the condition i need to pull the records to custom object .
This is to be done for all the leads which are under a campaign.Any help on this please adivise.

Thanks
lokesh