My approval process works on leads when a role(Eg salesrep role) based user submits records for sequential approval from different role based users in a queue.
As per my business i am suppose to fire and email alert (Escalation Email) to the very same users in queue where it it pending at approval after a certain time and need to change the owner ship of the those escalated records to their managers.
So for escalation email : I have written time based workflow such that an email fires to respective role users according to their pending stage.
but for changing the ownership, i am banging my head how to get do it. If i am trying to print the ownership of the record, i am getting the admin name in debug or in email template. adding more, i cannot possible change the ownership if a record is submitted for approval as the record is locked during an approval process.
Any idea or suggestion are greatly appreciated.