Blogs
-
How To Insert Over 10,000 Records Using Apex
Now this is very common use case and everybody will think of batch apex, which is obviously correct. But suppose you have below use case. When user insert an Account, you need to insert 15K related Contacts. Now this is tricky, why? Because for sure you will query Account in start method and build your…
-
File Upload Validation
Certainly, let’s consider the two use cases: Now, let’s delve into a specific scenario. Suppose we want to restrict users from uploading a file in a Contact record if the ‘Level__c’ is set to ‘Primary’. To comprehend the file handling in Salesforce: In Salesforce, the ContentDocumentLink is an object that signifies the link between a…
-
Retrieve Picklist Labels And Values Dynamically For Any Object And Field In Salesforce
You have the ability to craft a dynamic method for fetching picklist labels and values for any object and field in Salesforce. Below is a dynamic method that accepts the object API name and field API name as parameters: Now, you can invoke the method to obtain the value. For example: Enjoy your learning journey!