Posts

Showing posts with the label default

Salesforce Fact #721 | Default end date based on start date value in screen flow

Image
Another example for reactive screen components. Suppose, we have two date input fields: start date and end date. The end date should be by default, 30 days from start date and can be edited further by the user. We can set the default value using a formula resource and within the same screen. Attached are the screenshots.

Salesforce Fact #566 | Guest users cannot be record owners

Image
Guest users cannot be the record owners. So, in order to set the owner for the records created by guest users we can specify a default record owner in Community settings. Reference:  https://help.salesforce.com/s/articleView?id=sf.networks_assign_guest_records.htm&type=5 Attached is the screenshot.

Salesforce Fact #549 | Default visibility for files

There are different visibility options: InternalUsers, AllUsers related to records.  When there are no communities defined in the org, a File shared with a record will have a default visibility set to AllUsers. When there is at least one community defined in the org, a File shared with a record will have its visibility set to InternalUsers, by default. In order to change the visibility, we need to write a trigger on ContentDocumentLink object. Reference:  https://help.salesforce.com/s/articleView?id=000384243&type=1