10. Automation: Flow Builder
âą You may have heard the phrase âFlow is the futureâ in Salesforce
messaging over the past couple of years.
âą This is because Salesforce is consistently releasing new Flow
features to prepare for the retirement of Process Builder and
Workflow Rules in the upcoming years.
11. In and Not In
âą With the new In and Not In operators, a flow accesses a collection
of values to get related records without using the control element (Loop
Element).
âą The new operators used to access the Text, Number, Date, Date/Time,
Currency, and Boolean collections of type .
âą These In and Not In operators are available in the Get Records, Update
Records, and Delete Records elements of the flow builder.
12. SOQL in Apex:
IN:
Set<Id> accIds = new Set<Id>()
for(Account acc : Trigger.New){
accIds.add(acc.Id);
}
List<Contact> conList = [SELECT Id,Name,AccountId FROM Contact WHERE AccountId IN : accIds];
Not IN:
Set<Id> accIds = new Set<Id>()
for(Account acc : Trigger.New){
accIds.add(acc.Id);
}
List<Contact> conList = [SELECT Id,Name,AccountId FROM Contact WHERE AccountId NOT IN : accIds];
14. New Data Table (beta) flow screen to show records
âą Earlier we used Datatable in Aura component to display records
<aura:component>
<!-- attributes -->
<aura:attribute name="data" type="Object"/>
<aura:attribute name="columns" type="List"/>
<!-- handlers-->
<aura:handler name="init" value="{! this }" action="{! c.init }"/>
<!-- the container element determine the height of the datatable -->
<div style="height: 300px">
<lightning:datatable
keyField="id"
data="{! v.data }"
columns="{! v.columns }"
hideCheckboxColumn="true"/>
</div>
</aura:component>
15. After winterâ23
âą We can leverage the new Data Table (beta) flow screen component to
display a list of records on a flow screen. We can set the table to read-only,
or enable users to select one or more records and use their selections later
in the flow.