function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sarita Pa 3Sarita Pa 3 

Can we get old value in flows similar to trigger

Hi Team,
I am trying to see if we can get old values of an object in Flows as we get in trigger using trigger.oldMap. or PriorValue in Workflows.

Thanks for your help in advance
Raza0195Raza0195
This link will be helpful for you :
https://salesforce.stackexchange.com/questions/262903/can-process-builder-access-the-old-version-of-a-record#:~:text=2%20Answers&text=Although%20it%20is%20possible%20to,the%20old%20values%20as%20needed.
 Please choose the best answer if it is helpful for you.
Sarita Pa 3Sarita Pa 3
Thank you Raza for your quick reply. I am trying to get this on the Flows not on the Process builders.
John Paul Morrissee 1John Paul Morrissee 1
Sarita, use a get records element to query the records from the database. The results should have the prior values.
This worked for me on a record-triggered flow which is running before the record is saved.
{tushar-sharma}{tushar-sharma}
After Spring 21 release we can now get Old values in Salesforce Flow. Check my post in which I have covered step by step how we can do this.

https://newstechnologystuff.com/2020/12/20/get-old-values-in-record-triggered-flow/