Unboxing Salesforce feature for Developer


Lightning Flow > Flow Builder as before Trigger

Afternate for before trigger : Process Builder and using a record-change process to make additional updates to each record that triggers the process. Such a process can set the Region custom field automatically on each new case record. Before-save updates in flows accomplish that same goal, but much more quickly because each record doesn’t get saved to the database again.
Apex triggers. A flow that makes before-save updates is similar to a before trigger. The previously described record-change process is similar to an after trigger. In a save procedure, before-save updates in flows are executed immediately prior to Apex before triggers.


In the flow, the $Record global variable contains the record values. Use an Assignment element to update those values, and let Salesforce handle the rest. You don’t even have to create any variables or add an Update Records element to your flow.

Lightning Flow > Flow Builder : Flow on a Schedule

Now you can schedule an autolaunched flow to start on a particular date and time and set the frequency to once daily, or weekly. Scheduled flows can run on a set of records you specify. For example, send a weekly alert to the owners of Opportunities in the Prospecting stage that haven’t been updated in the last seven days.

Add Lightning Web Components as Custom Tabs.

Make a Lightning web component available as a custom tab in a Lightning Experience app and in the Salesforce app.



<lightningcomponentbundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <targets>
        <target>lightning__Tab</target>
    </targets>
</lightningcomponentbundle>


Share CSS Style Rules

To share CSS style rules, create a component that contains only a CSS file. Import the style rules from that CSS file into the CSS files of other Lightning web components.

Happy Sharing...

Everyone has their own favourites, so please feel free to share yours in the comments below!

Comments

Popular posts from this blog

Salesforce LWC : Compact Layout on Hover

Salesforce LWC With Third Party JS : D3

Communications between Lightning Components : Salesforce