Batch中调callout方法

Batch中调callout方法

globalclass ErrorLogBatch implementsDatabase.Batchable,Database.AllowsCallouts

implements后加上Database.AllowsCallouts

@Future(callout=true)方法去掉

 


你可能感兴趣的:(Batch中调callout方法)