Loading

Update the Salesforce Last Modified Date When There is a New Case Comment

게시 일자: Jul 3, 2026
상세 설명

When a new Case Comment is added in Salesforce, the Last Modified Date field on the Case record does not automatically update to reflect the new comment. This article explains how to use a Workflow Rule or Process Builder to trigger an update to a custom Date/Time field on the Case, which in turn updates the Case's Last Modified Date.

Note: Workflow Rules and Process Builder are scheduled to be retired by Salesforce. 

Salesforce Flow is the recommended replacement for automating this type of record update.

솔루션

To update the Last Modified Date on a Case when a new Case Comment is added, create a custom Date/Time field on the Case object and configure automation on the Case Comment object to update that field whenever a comment is created or modified. Updating the custom field causes the Case record to be updated, which also updates the Last Modified Date.

Method 1: Using a Workflow Rule

  1. Create a Date/Time field on the Case object. This field does not need to be added to the page layout.
  2. Create a Workflow Rule on the Case Comment object that triggers every time a record is created or edited.
  3. As the Workflow Criteria, use a formula that always evaluates to True.
  4. Add a Field Update action that updates the custom Date/Time field you created on the Case.
  5. Set the field value using the formula NOW().
  6. Save the Workflow Rule.

Each time a Case Comment is added or modified, the custom Date/Time field is updated with the current date and time, which in turn updates the Last Modified Date on the Case.

Method 2: Using Process Builder

  1. Create a Date/Time field on the Case object. This field does not need to be added to the page layout.
  2. Create a Process Builder on the Case Comment object that triggers every time a record is created or edited.
  3. Set Define Criteria for this Action Group to No criteria — just execute the actions!
  4. Under Immediate Actions, choose Select a record related to the CaseComment.
  5. Select Parent ID.
  6. Select the custom Date/Time field you created on the Case.
  7. For the Process Builder method, set the value of the custom Date/Time field using the formula NOW().
  8. Save and activate the process.
Knowledge 기사 번호

000385137

 
로드 중
Salesforce Help | Article