free web page hit counter
🛡️
Copyright Notice: This video is officially sourced and embedded from YouTube. For all copyright inquiries, reports, or removals, please contact YouTube's legal team here.
Salesforce Makes Sense

Salesforce Makes Sense

16,600 subscribers

⏱ 👁 9,902 views

Asynchronous Apex - Future Methods - Explained | Chapter 97 | Salesforce Developer Masterclass

Video Overview & Insights

In this video, we break down Future Methods in Salesforce, a powerful tool for executing processes asynchronously. Here's what we cover:

“

Bro why are you always in a hurry?

Please explain a little bit slowly
so that everyone can understand

— @critthinker_

✅ What Are Future Methods?: Understand their purpose and when to use them.

✅ @future Annotation: Learn how to define a future method and its key requirements.

“

You are not only explaining the concept ! You are actually explaining the real-time uses of future method by showing the real time errors where the most of the people will get stuck to ans the Qus in interview ❤
It’s really Marvellous 🤩
Thank you 😊

🫡🫡🫡🫡🫡

— @sreenathg7236

✅ Key Features: Dive into the ability to execute in separate threads and support for callouts.

✅ Limitations: Understand the governor limits, such as method size, callout restrictions, and transaction constraints.

“

Wonderful explanation

— @fero___3005

✅ Best Practices: Tips to ensure smooth and efficient use of future methods in your org.

By the end of this session, you'll have a clear understanding of Future Methods, their use cases, and how to avoid common pitfalls. Perfect for developers aiming to boost their asynchronous processing skills in Salesforce!

“

# When to Use @future Apex (Lightweight, Simple Tasks)



When you need to run a small background task after a trigger (e.g., send email).

To avoid Mixed DML errors (e.g., updating User + Account).

When you want to do a simple callout with @future(callout=true).

When you're only passing primitive values like String, Id, List<Id>.

When you don’t need to chain jobs.

When you don’t need to track or monitor the job status.

When you want to reduce governor limits in trigger (gets fresh limits).

When you want very simple code to run something quickly.

— @Mini-VJ7

🎥 Don't forget to Like, Share, and Subscribe to 'Salesforce Makes Sense' for more Salesforce tutorials that actually make sense! 😄

If you want to continue learning Salesforce (for free), Subscribe Salesforce Makes Sense here

“

Can we have a use case around mixed dml errors

— @thecatwhisperer007

https://www.youtube.com/channel/UCl-w-QIXwzSdbIDtpIXclcQ

To ensure a smooth learning experience,

“

why the method is static? any reason

— @samarthasahoo7374

I have curated playlists that will help you prepare for interviews, train on specific domains and boost your Salesforce journey.

30 Scenario Based Questions:

“

// Future Method - Reference Notes



// Annotation: '@future'

// Used to run methods asynchronously in the background.

// Runs in a separate thread from the main Apex context.



// Syntax:

// @future

// public static void yourMethodName(Type param1, Type param2) {

// // Your async logic here

// }



// Rules:

// - Method must be 'static' and 'void'.

// - Can take only primitive types or collections of primitive types as parameters.

// - Cannot return values.

// - Cannot call another future method or Queueable from inside a future method.



// Use cases:

// - Callouts to external systems (add '(callout=true)' to the annotation)

// - Offloading long-running logic to avoid blocking the user

// - Handling large data updates post-transaction



// Limits:

// - Max 50 future calls per transaction

// - No chaining allowed

// - No support for complex types (List<Account> ❌)

— @ananddash6229

https://youtube.com/playlist?list=PLEKSN4V4WEnIUhgsvAGkT2MZ2JbJtb2KQ

The Complete Administrator Course

“

"Hi sir, I understood the concept of future methods from your video.
However, can you make a video on a use case where a future method is used to make a callout to an external API?
It would be helpful to see a real-time example of how this works.
Thanks in advance!"

— @yeswanthgolla3142

https://youtube.com/playlist?list=PLEKSN4V4WEnLk4FUYHkfUlNbRynwz5cU4

Learn Salesforce in Bytes - Short videos on Salesforce features

“

Is it possible to make your background darker ? Other folks / tutorials use darker theme , easy on our eyes when watching ...thanks

— @awesomekj5812

https://youtube.com/playlist?list=PLEKSN4V4WEnIxdPKa-ZqtWelq65CdR3wH

Learn Salesforce With Me - Topic based Explanatory Videos

“

Hi !! The above scenario can be done by triggers only na , what is point of asynchronous apex, what will be the real time scenario of case of future method could explain if possible please?

— @Dudez_gaming

https://youtube.com/playlist?list=PLEKSN4V4WEnLnoTxyKUy6mFcBwSnKDa6q

65 Salesforce Interview Questions:

“

Sir how to reach out to you sir I want to discuss something regarding careers guidance.

— @navnitkhandait6750

https://youtube.com/playlist?list=PLEKSN4V4WEnK93qW9rEQPCM6kLFl99k5u

100 Salesforce Interview Questions:

“

Hello Himanshu I was one of the person who got selected for interactive session, but didn’t get any response from you 😢

— @Dudez_gaming

https://youtube.com/playlist?list=PLEKSN4V4WEnLYWAAIidiDkbGimVFEqOK1

If you would like to acknowledge my efforts and want me to continue training and mentoring, you can support me here.

https://www.buymeacoffee.com/HimanshuM

For any kind of questions, training & mentorship, queries & concerns,

Feel free to drop a mail at

salesforcemakessense@gmail.com

That’s all from this video. See you in the next video. Till then, breathe long and keep learning :)