How to create or configure a workflow that will send an email to a specified email address once all approvals have been completed?
- Products
- Solutions
- Resources
- Trials
- Support
- Partners
- Communities
How to create or configure a workflow that will send an email to a specified email address once all approvals have been completed?
Hi Aaroo,
if the email shall be sent to the recipient's address, you can easily configure a "Mail template approved" in your approval policy.
I'd suggest to add an approval step using the "EX" approval procedure ("Approvals to be made externally") at the end of your workflow if you want to send additional emails to specified addresses. The configured event needs to generate a custom process which sends out the mail(s) and makes the final decision using the MakeDecision method. Chapter "External Approvals" in the IT Shop Guide has some information on this.
HTH,
Oliver
Just create a custom process that sends an e-mail, on the PersonWantsOrg (or PWOHelperPWO) table, and assign to it any of the standard events that are fired throughout a standard request workflow.
The 'hard' part is to know which standard event gets fired at which time. You can take a look at the PersonWantsOrg table overview form and see what events and processes are already assigned to it, to get an inspiration.
For example, the process VI_ESS_PersonWantsOrg_Send Mail when Closed is assigned to the ORDERGRANTED event. This implements the sending of the mail associated with the approval policy ('Mail Template Approved').
It sounds like you don't have a "Mail template approved" assigned to the approval policy.
There are multiple places where mail notifications can be triggered from, and you need to find out which one you want to alter. For example you can also have your templates assigned to individual approval steps, which would be totally different processes/events.