A customer is seeing many open opportunities being created and not closing on time. To ensure an opportunity gets closed on time, they define an expiration date, which is a few days prior to the close date. This is to encourage the sales team to close the opportunity prior to the expiration date, thereby having a high win rate. Now, a customer would like to define an opportunity as urgent when it's past its expiration date and still open.
For instance, an opportunity has an urgent picklist field with values "Yes" and "No". The customer would like to mark open opportunities as urgent (with picklist field value as Yes) via an automation technique if the opportunity is past the expiration date.
To set the context, let's assume that the customer's Salesforce instance already has the below fields created:
AND ( OR(NOT(IsClosed), NOT(IsWon)), (TODAY() > Opportunity_Expiration_Date__c))
Here we are checking if the opportunity is not closed or won and if it has crossed the expiration date.
With the above fields created, let's now look at the approach to updating the "Urgent Opportunity" picklist from "No" to "Yes".
We will be using a Scheduled flow which would run on a daily basis to update the Opportunity picklist field from "No" to "Yes". The reason we go with scheduled flow is that it will help to query all opportunities that have crossed their expiration even if they did not get updated on that day. Hence, to cover this outlier situation, a scheduled flow is being considered.
The design of the Scheduled Flow is as below:
000392577

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.