You need to sign in to do that
Don't have an account?

Workflow or Trigger creation
I am tyring to figure out how to create a custom filed (in the Case section) say "Latest Case Comment DateTime" using either a workflow or trigger to get this field to populated with the creation date of the latest comment created/made. Any ideas or suggestions would be much appreciated.
Thank you!
Tyler
The approach would have worked but unfortunately SFDC does not allow us to create fields on the Case Comment object.
Alternatively, we could have a Text Area field created on the Case object and have a workflow populate the value with the content of every Comment that is added to the case. In this case however, the Workflow will be overwriting the existing value with the new value and the value will always be the same as the content of the latest comment. Therefore, in your report, all you would need to display is the additional field created to capture the Case Comment Value.
Perform the following steps for creating the Field on Cases:
Perform the following steps for creating the Workflow to populate the Field on Cases:
After completing the Field Creation and Workflow Creation, add the field to the Case Report.
Point to Note - For all the closed cases or existing cases (until a new comment is added), the field named 'Latest Comment Details' will remain blank unless you manually decide to populate the value for the field for the relevant cases.
Hope this helps.
All Answers
As per my understanding if you want to create a field go to case object from setup and create a new customfield, can you be in more detail why you want to use this workflow rule
Whenever I comment on a case that I am working on it creates a new record that shows up in my cases report. So depending on the case, it could have 20+ comments and thus multiple records associated with the case. I am looking for a way to be able to run a report on all of my cases where just the most recent comment shows up for each case as opposed to every comment showing up on every case. This makes my report extremely long.
Another contributor suggested I try the following:
1. Create a field in case say "Latest Case Comment DateTime" and using either a workflow or trigger get this field populated with the creation date of the latest comment created/made.
2. Create a formula field say "IsLatest" at the case comment level which is set to true if Latest Case Comment DateTime and case Comment created datetime is equal.
3. Now create a report on case object , select case comment as a field / column to be display and in filter criteria set the filter to IsLatest is set to true.
Is this the best way to accomplish this? Or do you have any other ideas that would be easier?
Thanks for all of your help!
Tyler
The approach would have worked but unfortunately SFDC does not allow us to create fields on the Case Comment object.
Alternatively, we could have a Text Area field created on the Case object and have a workflow populate the value with the content of every Comment that is added to the case. In this case however, the Workflow will be overwriting the existing value with the new value and the value will always be the same as the content of the latest comment. Therefore, in your report, all you would need to display is the additional field created to capture the Case Comment Value.
Perform the following steps for creating the Field on Cases:
Perform the following steps for creating the Workflow to populate the Field on Cases:
After completing the Field Creation and Workflow Creation, add the field to the Case Report.
Point to Note - For all the closed cases or existing cases (until a new comment is added), the field named 'Latest Comment Details' will remain blank unless you manually decide to populate the value for the field for the relevant cases.
Hope this helps.