Flow

Auto-Close Cases After 7 Days

A simple yet powerful flow that automatically closes resolved cases after a 7-day waiting period, ensuring a clean and up-to-date service console.

Auto-Close Cases After 7 Days

Problem

Support cases that are resolved but not officially closed by agents clutter up queues and skew reporting metrics. Manually closing them is a time-consuming, repetitive task that distracts agents from more important work.

Solution Overview

This solution uses a scheduled flow that runs daily. It queries for Case records with a 'Resolved' status that haven't been modified in the last 7 days. For each matching case, it updates the status to 'Closed'.

How to Deploy

  1. Download the solution package ZIP file.
  2. In Salesforce Setup, navigate to 'Deploy from File' and upload the ZIP.
  3. Verify the components in the package and click 'Deploy'.
  4. Activate the scheduled flow 'Daily Case Closure' from the Flow setup page.

Screenshots

Screenshot 1
Screenshot 2

Related Solutions

Flow
intermediate

Round Robin Lead Assignment Flow

A flow that assigns new leads to a queue of users in a round-robin fashion, ensuring equitable distribution.

Round Robin Lead Assignment Flow
Apex
intermediate

Invocable Apex for HTTP Callouts in Salesforce Flow

A generic, invocable Apex action that allows flows to make HTTP GET or POST callouts to external APIs without writing custom Apex for each integration.

Invocable Apex for HTTP Callouts in Salesforce Flow