Can a SOSL query be used in the Batch apex start method?
I used the below code
global Database.QueryLocator start(Database.BatchableContext BC){
return Database.getQueryLocator([FIND '.com' IN EMAIL FIELDS RETURNING Account (Id,Email__c),B__c(Id,Email_of_B__c)]);
}
received the below error
Method does not exist or incorrect signature: Database.getQueryLocator(LIST>)
Could you please help me out. I need to mask the emails ids in those objects and hence have gone for batch. There are more objects to be included.