
Pass recordId as well as record field values from detail page to flow

the label can be the value of some other flow resource.ġ4. Use dynamic label for screen components: For screen component, you can use dynamic label i.e. Also, ensure the flow debugging runs in rollback mode so that any database operations are rolled back during debugging. In case of screen flow, if required run the flow as a particular user and observe the execution. Debug and test a flow properly before activatingĭebug and test a flow properly before activating: Before you are activating a flow, ensure you have done enough debugging and testing, not only happy path testing.

Consider the execution context of the flowĬonsider the execution context of the flow: For auto-launched and screen flow, you get to decide the execution context. Here is a screenshot showing the discrepancy:ġ1. So, while comparing remember convert the 15 digit Id to 18 digit using CASESAFEID() function. So, instead of this:īe careful while using user recordId: In flow, the $User.Id returns 15 char case-sensitive Id but any other user lookup fields on record like owner, createdby etc. Use formula resources instead of decision elements for large number of conditions: When dealing with multiple if-else conditions, try to use formula resources to keep the flow simplified.įor example, you are populating Opportunity description based on the value of amount. Lean about One Record Triggered Flow Per Object Per Type. We can place decision elements as well after the entry criteria but restricting them at the entry is more efficient. Include Entry Criteria: Always try to include entry criteria in record-triggered flows to restrict only the intended records. If you new then please check our Salesforce Flow FREE training.

Let see the Top 21 tips for Salesforce flow with Examples. Check out our 15 Salesforce Flow best practices here. In this post we will talk about Salesforce Flow Examples and Top 21 Tips for Salesforce Flow.

Salesforce Flow is an automation tool provided by Salesforce which can be used to perform various tasks like, Sending an Email, Posting a chatter, Sending the custom Notifications & etc using clicks instead of code.
