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.
Step 1: Create a Roll-up Summary Field on the account object that will show the most recent closed date of the opportunity where Stage equals Closed Won using the MAX option on the Roll-up Summary Field. Set Field to Aggregate to Close Date.
Step 2: Create a formula field on the Account object that returns a number (0 decimal) which is the number of days. The formula checks if the account has at least one closed won opportunity, then returns the number of days since the opportunity closed (using the rollup summary field created in Step 1. If no closed won opportunity exists, then use the account created date and return the number of days since the account was created
Example Formula:
IF(
ISBLANK(Most_Recent_Closed_Date__c),
TODAY() - DATEVALUE(CreatedDate),
TODAY() - Most_Recent_Closed_Date__c
)
Step 3: Create a Scheduled Flow that should be scheduled to run daily and put the criteria that if Closed_Won_Opp_Since__c Greater Than 180 and the Operator DOES NOT EQUAL Inactive then update the account status to Inactive. You can set the Start Date, Start Time & Frequency of the flow to any preferred value.
Step 4: Set criteria for the records that should enter the flow and update the Account Record value to Inactive
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.