You need to sign in to do that
Don't have an account?
DannyTK
Trigger to update new cases generated by Process Builder
Hello all,
I'm trying to write a simple trigger to update new cases created by Process Builder (so assignment rules can re-assign, since these cases hit the rules until it's Edited and Saved manually). So all the trigger would have to do is re-save the cases (with nothing else to change).
what i have is:
trigger caseUpdate on Case (after insert) {
List<Id> idCase = new List<Id>{};
for (Case ticket : Trigger.new)
update ticket;
}
But this doesn't seem to work. Can someone take a look and see where I went wrong?
thanks again community
-danny
I'm trying to write a simple trigger to update new cases created by Process Builder (so assignment rules can re-assign, since these cases hit the rules until it's Edited and Saved manually). So all the trigger would have to do is re-save the cases (with nothing else to change).
what i have is:
trigger caseUpdate on Case (after insert) {
List<Id> idCase = new List<Id>{};
for (Case ticket : Trigger.new)
update ticket;
}
But this doesn't seem to work. Can someone take a look and see where I went wrong?
thanks again community
-danny
http://developer.force.com/cookbook/recipe/running-case-assignment-rules-from-apex
Thanks,
Fahad Akhtar
I used both the Database.DMLOptions to utilize the assignment rule via trigger, as well as the simple update on new Cases...looks like neither worked. I'll keep modifying, let me know if you have any other suggestions and I appreciate your help on this.
-danny