Posts

Showing posts with the label list

Salesforce Fact #940 | Dynamic related list for mobile app(Beta)

With the latest Summer'25 release, dynamic related lists are available(Beta) in Salesforce mobile app. To enable this, go to Setup -> Salesforce mobile app -> Enable ' Dynamic Forms and Dynamic Highlights Panel on Mobile' and Enable 'Dynamic Related Lists for Mobile (Beta)  '. Reference:  https://sahaabhishek1993-dev-ed.lightning.force.com/lightning/setup/SalesforceMobileAppQuickStart/home

Salesforce Fact #678 | List in AuraEnabled methods

Image
AuraEnabled methods cannot return of type List<SelectOption>. So, one of the option is to create a custom SelectOption class and return the data. Reference:  https://developer.salesforce.com/forums/?id=9062I000000IN7YQAW Attached is the screenshot.

Salesforce Fact #627 | Passing list of Sobject across batch apex

Image
Suppose we need to pass List<Sobject> records from one batch apex to another. We can call the 2nd batch from finish method of the 1st one and pass the list of records. In this example, we are creating 5 account records in batch1 and then passing the records to batch2 from the finish method of 1st batch. In this case, we need to use the  Iterable<SObject> type and the 1st batch needs to implement Database.Stateful interface to retain the value. Attached are the screenshots.