Posts

Showing posts from April, 2023

Apex best Practices in salesforce

* if we need to create multiple test records in test class we can create list and then do single insert operation because database operation or dml operation are slow when compared to apex operations. * No soql inside forloop * In ofter trigger we con't directly use trigger context variables(listofnewrexords) we need to soql if we need to change same records. * 

How to get Current recordId to flow from quickaction in salesforce

Image
 Resolution :  1.create new resource as text type variable. 2. Remember Variable API name should be as "recordId". 3.We don't need to assign value to this variable, it will automatically fetch from current page. 4. refer where ever we need current recordpage  recorded in flow as we use general flow variable.