Activity Forums Salesforce® Discussions Why objects cannot be passed as an argument in future methods in Salesforce?

  • Why objects cannot be passed as an argument in future methods in Salesforce?

    Posted by Deepak on June 2, 2020 at 10:10 AM

    Why objects cannot be passed as an argument in future methods in Salesforce?

    Marziya replied 5 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Marziya

    Member
    June 2, 2020 at 12:51 PM

    The reason why sObjects can't be passed as arguments to future methods is because the sObject might change between the time you call the method and the time it executes. In this case, the future method will get the old sObject values and might overwrite them.

Log In to reply.

Popular Salesforce Blogs

Salesforce Marketing Cloud Integration with Google Analytics 360

Redefining the future of Marketing – Salesforce Marketing Cloud Integration with Google Analytics 360

Blog in

Know your customers better and make smarter, insight-based marketing decisions through Salesforce’s massive customer relationship management platform twinned with Google Analytics 360’s market-leading digital analytics solution…

Popular Salesforce Videos