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

Update Cases Custom Field with Case Comments latest Entry
Hi,
As we know, Case and case comments have a parent child relatioshiop.
For one case, there can be multiple entries of case comments ?
Howevr, I want to update Cases field ( Description ) only with the latest case comment that has been created ?
How can I achieve this ?
As we know, Case and case comments have a parent child relatioshiop.
For one case, there can be multiple entries of case comments ?
Howevr, I want to update Cases field ( Description ) only with the latest case comment that has been created ?
How can I achieve this ?
Write an after update/insert trigger on Case to update the recent case comments to case field.
I hope the above solution is helpful for you.
Regards
Karthik
Can you help me with the test class for the same.
Also, can you help me with other two questions , I have asked recently
Here is the test class for the trigger.
I hope the above solution is helpful for you.
Regards
Karthik
Can you help me with other questions on my page
if the above solutions are helpful please mark it as best answer so that it will be helpful for others in the community.
will look into your other question and try to answer it.