To automatically deactivate accounts with no recent opportunity activity, implement a Scheduled Flow to update the account status based on custom time thresholds.
To track the account's status, you can create a status picklist field on the Account object with two values: Active and Inactive. Else, you can create a checkbox field.
On the Account object, create a Roll-Up Summary Field that shows the most recent Close Date of the Opportunity where Stage equals Closed Won, using the MAX option. Set the Field to Aggregate to Close Date.
Create a number formula field (0 decimal places) on the Account object that calculates days since the account's most recent Closed Won opportunity. If no Closed Won opportunity exists, it falls back to days since the account was created.
IF( ISBLANK(Most_Recent_Closed_Date__c), TODAY() - DATEVALUE(CreatedDate), TODAY() - Most_Recent_Closed_Date__c )
Create a Scheduled Flow to run daily. Set the criteria: Closed_Won_Opp_Since__c greater than 180 AND Account Status not equal to Inactive. Set the Start Date, Start Time, and Frequency as preferred.
Add an Update Records element in the flow to set the Account Status field to Inactive for records matching the criteria.
000393490

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.