- January 22, 2020 at 9:51 am #67190Manish #18
Why Future method does not contain return type(always void) in Salesforce?
Why Future method does not contain return type(always void) in Salesforce?January 22, 2020 at 11:19 am #67204Anuj #17
Future method always run in Background and is used for long running process that’s why its always used static method and return type Void and use primitive data types and Future methods does not take standard or custom objects as argument, it take sObject as parameter.
For more Info check out this link: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_invoking_future_methods.htm
Please Register to reply to this topic. /