In certain situations, I may have several approval steps for a Case which will be approved by several different users.
I need my Apex trigger to complete a CaseMilestone, if a particular step has been approved. I'm looking for the best way to check that the correct step has just been approved.
I've found this post in the Developer Forum which suggests a field update to a field which would contain the number of the approval step that's just been completed. But this would potentially require a lot of maintenance.
I could also create a field update, as an Approval Action, to tick a tickbox on the Case when a particular step is completed and check whether the tickbox is TRUE/FALSE in the trigger. But again this seems inflexible and if the same tickbox ends up being updated by multiple approval processes, there's the risk of confusion.
Do I have any other alternatives?