You need to sign in to do that
Don't have an account?
Jesper Klang.
Need to make the Case Status change when there's a comment on a Post
I need the Status of a Case to change from "Pending..." to "Notes Recieved" when there's a reply on a Post. I've tried to make this happen with Process Builder but found out that it's only possible with a Apex Trigger. That's where I need some help, and hope that someone can help me with the code.
So the Status of the Case need to change to "Notes Recieved" when:
So the Status of the Case need to change to "Notes Recieved" when:
- Case Status contains "Pending" (we have different statuses ex "Pending Internal", "Pending Customer" etc.)
- Someone other than the Case Owner writes a comment on a Post in the Case.
Here goes the code for the Trigger.
That should do the trick !
All Answers
Here goes the code for the Trigger.
That should do the trick !
if(s != 'Closed' && (c.OwnerId != loggedinuserid)) {
JF