Email Requisiton Approver when Req is released

 13 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Hello,
I am looking for ideas on how I can get the email address of the approver of a requisition based on dollar amount and requesting location. I modified the delivered requisition approval flow, reqapproval1.xml, to determine the approver based on dollar amount. It will place the req for approval in the inbasket directly under the dollar amount rather than starting out at the lowest level and bumping through each level when it is approved. I also added an email notification to the requester once the req is approved. I have created a separate flow that will send an email once a req is release, but I have hard coded the email address for now. Any ideas? I have Process Flow Standard only. Thank you.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
You could build your approver list using RQ02 and in the Name or Title field put the email address of the approver for each level.
David Williams
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
...but if you only have ProcessFlow Standard, how are you using an Inbasket? I didn't think a UserAction node would work with PF standard? If it does, why not check the Notify All Users of Work checkbox and let the system do the notification automatically?
David Williams
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Hi ConsultDavidW,
Can you refresh my memory where the check box for Notify All Users is? I can't remember where it is. I am tying the flow to the Req Approval service with the Event Type of EVT_PFLOW. I will take a look at RQ02. Thank you for your response.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
Within your UserAction node if you go to the Work Detail tab you will see the checkbox. You have to define the information that is sent within this email on theProcess - Process Properties - User Node tab (you can use variables).
David Williams
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Unfortunately I have PF Standard so I don't have access to it. I will have to figure out another way. Any other ideas? Thank you.
Deleted User
New Member Send Private Message
Posts: 0
New Member
query WFMETRICS retreiving the WF-RM-ID field for the workunit where operation is Approve, the last record is the last approver. using WF-RM-ID do an RMQuery to get the email address if they are in LDAP, otherwise query for their EMPLOYEE agent to get HR Company and Employee and use as keyto read the EMPLOYEE table to get EMAIL-ADDRESS.

Keep in mind the "check box" solution requires the email sent to be the same generic text for all UserActions in a flow because you put the text in one place.

This will not work with Standard either though because you will not have access to RMQuery either, the only help would be if the RM-ID matches employee number in your company then you could skip the step of RMQuery and read the EMPLOYEE table.

I assume you are using the generic delivered ReqApproval flow and are unable to change the UserAction since you say you are using Standard.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
Again: You could build your approver list using RQ02 and in the Name or Title field put the email address of the approver for each level and use a standard Query to look up the email values at each approval level.
David Williams
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Hi David,
I like your idea of doing a query of WFMETRICS and will give that a try. Thank you for your help.
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Hi David,
I checked out WFMETRICS and is looks as though a record for the workunit does not show up until the approver has approved the requisition. I need to be able to send an email to the approver when the requisition has been approved. Are there any other tables that would hold the information when the req is released? Thank you.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
You are building the approver list in User Tasks? Even if you can't update the UserAction (since you only have PF Standard) to notify users when they receive a task, you could do a work around.

You can create a new Task called Email and assign that to each approver and add the Category Filter of their email address value to their records, you could at least do a Query to see who the approver should be and then another Query to retrieve their email address and then send them an email before your flow hits the UserAction node. (Can you send email with PF Standard?)
David Williams
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Hi David,
So would I do a query of the table WFUSERCAT based on the task Level1 and the Rec Loc value to get the RM_ID and then query it again to get the email address for the Email task?
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
That should work.
David Williams
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Thank you David for your patience.