Posts

Showing posts from December, 2024

Salesforce Fact #900 | Getting error record details when allornone flag is true

Image
We can use Database.SaveResult class to know which records failed during DML operation when the allornone flag is false. Similarly, we can get the details of error records  using DmlException  when allornone flag is true. Reference:  https://salesforce.stackexchange.com/questions/410070/return-database-saveresult-when-allornone-is-set-to-true Attached are the screenshots.

Salesforce Fact #899 | LWC record picker with custom settings and metadata

Image
Lightning record picker works with Custom Settings and Custom metadata as well. Attached are the screenshots.

Salesforce Fact #898 | Restricted from sending email

Have you encountered the error: 'You are restricted from sending email' while sending email from the activity section on record detail page. This is because the 'Enforce Email Privacy Settings' option is enabled under Setup -> Email -> Deliverability. Reference:  https://help.salesforce.com/s/articleView?id=000381335&type=1

Salesforce Fact #897 | Opportunity Amount is read only

When the Opportunity is associated with one or more Opportunity Products, the amount field is read only. Reference:  https://help.salesforce.com/s/articleView?id=000387134&type=1

Salesforce Fact #896 | Conditional field formatting in action

Image
With the latest release, we have the Conditional Field Formatting as GA. With this option, we can add visual indicator to a particular field based on the value of that particular field or other fields. Reference:  https://admin.salesforce.com/blog/2024/conditional-field-formatting-winter-25-be-release-ready In this example, we are showing a warning symbol when the Opportunity Probability is less than 10%. Attached are the screenshots.

Salesforce Fact #895 | Dependent record picker in LWC

Image
We can create a dependent lightning record picker in LWC. Suppose, we have two record pickers and once the account record is selected, the second record picker should filter out the related contacts. Reference:  https://salesforce.stackexchange.com/questions/428066/lightning-record-picker-dynamic-record-filter-not-working Attached are the code snippets.

Salesforce Fact #894 | Adding user to multiple public groups/queues at once

Image
There are times when we need to add a particular user to multiple public groups and queues. Now, based on the OOTB option, we can do that by going to each and every public group or queue. We can create a screen flow as well to assign a particular user to multiple public group or queue at once to ease the work for users. Attached are the screenshots.