My requirement is to trigger a email to user based on document type.
Lets say my doc. type is DOC1 then Approver will be USER1
DOC2 then Approver will be USER2.
and mail should be triggered to this agents dynamically based on document type.
I have created one z table and maintained this entries.
created one Rule .
If I pass my document type to rule, it fetches USER correctly.
Now how to use this Rule in work flow to trigger mail to fetched User ??
Please give me a step by step guide to do it.