Salesforce: how to pass non primitives into asynchronous jobs

In the past if we needed to pass SObject records or other non primitives types we had to convert those records into Map<String, String>, and serialize this map and pass it to future method as String and then inside of the future method deserialize the string into map and then convert it into list of SObjects or use Batchable interface for a simple business requirement.

Now we can use Queueable interface for that.

This entry was posted in apex, Asynchronous, job and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s