Can we send SObject as params to Queueable Apex class?
Let's see if we can send SObject as params to Queueable Apex class.
Queueable Apex is the lighter version of Batch Apex at the same time more flexible than Future method.
Check the difference between Queueable Apex and Future annotation.
Apart from all the differences one of the main difference between both the entities is, in future method we cannot send SObjects as params. We can only send primitive data types (here we looked at how to send complex data types as params to future method).
Whereas in Queueable Apex we can send Sobjects as params.
Let's look at some snippet!
Hope this is helpful!