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
Abhishek chauhan 20Abhishek chauhan 20 

There is a field in opp obj name * Stop sale * I need to put opp stage = closed when stop sale date comes today's date # means if stop sale date is 31 April 2023 so when this date come then sate should be closed but only using flow. * Anyone can help ?

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Abhishek,

You may have use scheduled flow for this to run every day at particular time and if today() is equal to date field you need to change the opportunity stage field.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,
Arun Kumar 1141Arun Kumar 1141
Hi Abhishek,

Yes, it's possible to automatically update the stage of an opportunity to "Closed" when the Stop Sale date is reached using a flow in Salesforce. Here are the high-level steps to achieve this:
- Create a new Flow in Salesforce.
- Add a new variable of type Date, let's call it "Today's Date".
- Add a "Get Records" element to retrieve the Opportunity record with the Stop Sale date field.
- Add a "Decision" element to check if the Stop Sale date has passed. You can use a formula to compare the Stop Sale date with the "Today's       Date" variable, and if it's true, proceed to the next step.
- Add an "Update Records" element to update the Opportunity record's stage to "Closed". You can also add a field update to update any other   fields  if needed.
- Save the flow and activate it.
Once the flow is activated, you can schedule it to run daily or at a specific time using a scheduler. This way, the flow will check if the Stop Sale date has passed and update the Opportunity record's stage to "Closed" if it has.
Note: Make sure to test the flow thoroughly in a sandbox environment before deploying it to a production environment.

Please mark it as best answer if it will help you.
Thanks