- Double click into the Start element and indicate to launch Flow on new record created (in this example).
- Use a Decision element to see if this record meets criteria.
- If so, use an Assignment element to update the field values. There is no “update records” – you just use an Assignment.
- Access the values of the Record by using $Record.Field__c when choosing a resource or variable.
- You cannot access $Record.Id because it doesn’t have an ID yet! It hasn’t been saved.
Example Scenario: A new contact has been created. Before it’s saved, look to see if the email address of the contact indicates that this is one of our competitors, and if so mark them Email Opt Out.
Why do this: Technically, a before-save flow happens so much faster than waiting until the record is saved, launching a process, and then editing the record again. That’s two DML statements reduced to one (aka you only hit “save” in the database one time instead of two and this is a good thing). As far as a business use case, why not make your competitors work a little harder to access your content? But what do I know? I work with nonprofits.