You need to sign in to do that
Don't have an account?
shailesh_rawte
Future Working in Batch Apex But dont know how
Hello All,
As you know that future not working in Batch or its not be chained.
But in my scenario i can able to call future method from Batch Class.
Regards,
Shailesh Rawte
As you know that future not working in Batch or its not be chained.
But in my scenario i can able to call future method from Batch Class.
Regards,
Shailesh Rawte
Also, look at this discussion
----------------------------------------------------------------------------
global class GS_UpdateAssetQuantityBatach_AC implements Database.Batchable<sObject>{
global static String queriyLimit;
global Database.QueryLocator start(Database.BatchableContext BC) {
return Database.getQueryLocator(query);
}
global void execute(Database.BatchableContext BC, List<Product_List_Detail__c> productListDetails) {
GS_Rest_AccoutCUDashORG.createAccount(listofSte)
}
global void finish(Database.BatchableContext BC) {
// execute any post-processing operations like sending email
}
}
---------future---------
Global class GS_Rest_AccoutCUDashORG{
@future(callout=true)
public static void createAccount(Set<id> productListDetailsID)
{
}
}
and the same code i have exucuted in developer edition org it's throghing an error. but in my orgination sandbox working fine.
Developer org:AP5