Notes
In Salesforce, the $Record.Prior variable in Flow is used to reference the prior value of a record before it was updated. It is particularly useful in workflows that involve updating or modifying records, as it allows you to compare the current and previous values of a record and trigger certain actions based on those changes.
For example, you may want to send an email notification to a customer when the status of their order changes from "Processing" to "Shipped." By using the $Record.Prior variable, you can check the previous value of the order status field and determine whether it has indeed changed before triggering the email notification.
Overall, $Record.Prior is a helpful tool for tracking changes and implementing conditional logic in your Salesforce workflows, ensuring that your business processes are efficient and accurate.