• #67190
    Salesforce | Manish Manish #18
    Forcetalks

    Why Future method does not contain return type(always void) in Salesforce?

    Why Future method does not contain return type(always void) in Salesforce?

    #67204
    Salesforce | Anuj Anuj #17
    Forcetalks

    Hi Manish,

    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

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?