I was exploring the internet and found a wonderful utility class having methods to get information about fields and objects, including schema information by Kevin Antonioli posted on Playground App. Although I do have my own version but I prefer this one
Read More
Many times you have to find the related objects either you do it the hardcode way or another. Here I am sharing an example of how you can dynamically get the Related either Parent or Child. The below examples are for the
Read More
Salesforce enforces an Apex Heap Size Limit of 6MB for synchronous transactions and 12MB for asynchronous transactions and this is a governor limit which means it is a hard limit and cannot be modified or relaxed. The “Apex heap size too large”
Read More
When I execute the following code You receive the following error:Execution Failed. System.TypeException: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking. but after execution of this script: everything goes smoothly. This is because
Read More
In this article, I would like to talk about one specific real-world scenario. Recently, we have been working on the investment platform build on top of Salesforce for one of our clients. At some point, we had an idea of collecting leads
Read More
This is a very common use case where you have the API Name, but you need the Current Labels for your object, or field. Either its Custom or Standard. Typically, you know it already, but you need it when you’re writing your
Read More
As of now, you can GET custom metadata records in flows but you cannot create or update them. Using this invocable class you can create/update custom metadata records in Flows. You can access the repository here: https://github.com/mhamzas/Flow-Create-Update-Custom-Metadata The code is self explanatory
Read More
After Spring 20, you can now create reusable Apex actions that use the generic sObject and List<sObject> data types. Build one action that works for multiple objects, rather than one for each individual object. Developers can build a filter or sort action
Read More
There could be many cases where you need to insert records in multiple objects in a single method but you might end up with TOO MANY DMLs Error. Here we’ll discuss how you can insert records in multiple objects in a single
Read More