How to Compare Between Prior and New Value in Record Triggered Flows | Spring 21 New Feature

by Sudipta Deb | Dec 18, 2020 | admin, Advanced Admin, flow, New Feature, Prior Value, Record Triggered Flow, Spring 21 | 0 comments

 

Spring 21 is going to be full of new Flow features. Today I will be explaining how you can compare between prior and new value in record triggered flows. In my earlier post, I have shared another feature from Spring 21 – “How to create multi-column screens in Flow Builder“. The video link is here.


Before Spring 21, if we need to compare between prior and new values before running the business processes, we need to rely on either Process Builder or Trigger. But with the introduction of Spring 21 release, now we can do this comparison right inside flow builder and take actions accordingly.
In this post, I will use this feature to implement a basic use case. I also put a short video here explaining the steps.

Use Case

Here comes the use case which I will be implementing using flow.

Step 1

Create a Record-Trigerred flow and choose Freeform/Auto-Layout in the next screen.

Step 2

Configure Trigger screen, select –

  • Trigger The Flow When: A record is created or updated.
  • Run the Flow: Before the record is saved.

Step 3

In the Choose Object screen, select –
  • Object: Opportunity.
  • Condition Requirements: Amount Is null False.

Step 4

Create the decision where –
  • Outcome – Greater 

  • Outcome – Less Than Equal

Step 5

Add the assignment for Greater to update the rating to HOT.

Step 6

Add the assignment for Less Than Equal to update the rating to NORMAL.

Final

Below is how the flow will look like finally –

I hope this blog post will help to understand how to use this new feature in your flow. 
Below is the video where I have created this flow step-by-step.

Written by

Related Posts

Perform Inline Edit And Sort Inside Flow Data Table

Perform Inline Edit And Sort Inside Flow Data Table

I’ll show you exactly how to use the new data table component features from Salesforce’s Spring 26 release. Learn how to implement inline editing and column sorting directly within your screenflow, making your workflow automation more efficient. This update offers significant enhancements for any salesforce developer working with flowbuilder.

Also I have shown how to save the inline edit changes properly in the salesforce.

read more...

0 Comments

Leave a Reply