Hi
I'm calling a workflow from within a SPE process on the Sales Order using this:
Call WORKFLOW(TYPEVT,CODEVT,OPERAT,CLEOBJ) from AWRK
this works fine and all pre-configured email addresses in the workflow get emailed.
However, I need to add in 2 other email addresses which will vary each time:
1. the current logged in user (i've tried putting USRMAIL as the email address in the workflow but it doesn't work)
2. the email of the Sales Rep on the order (I can get this in the code before calling WORKFLOW but how do I pass this into the subroutine
Any ideas much appreciated
Thanks