You need to sign in to do that
Don't have an account?
rosh
public class VConnect_EInvoiceAuraHelper {
@AuraEnabled
public static void getInvoice(Id recordId) {
// do some preprocessing.
// execute the batch here
Set<Id> poids = new Set<Id>();
poids.add(recordId);
System.debug('Called');
Id jobId = Database.executeBatch(new BatchClassEInvoice(poids),200); // optional batch size can be provides as well.
}
}
test class? please help for this is urgent
public class VConnect_EInvoiceAuraHelper {
@AuraEnabled
public static void getInvoice(Id recordId) {
// do some preprocessing.
// execute the batch here
Set<Id> poids = new Set<Id>();
poids.add(recordId);
System.debug('Called');
Id jobId = Database.executeBatch(new BatchClassEInvoice(poids),200); // optional batch size can be provides as well.
}
}
Salesforce Techie
in test class just call the method getInvoice and pass the record id you created
rosh
Haven't created record till