This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Identity Manager : Send email to specified email address after all approvals

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 

  • This is basically what i am looking for as well. Simply create a step in the approval process chain to generate an email notification to specific address when all previous approval steps have been completed.
    The step itself shouldn't be an approval step, just used to send email notification to a specific address. Email should contain about the same info as in approval emails except the approve/reject links.

    Anyone with an idea how to create this in the best way?
  • You could just create custom processes and assign them standard PWO events that are fired throughout request workflows like ORDERGRANTED etc.

    Changing the approval workflow is not feasible in most circumstances, as it usually resets all your open stuff...
  • Hi Christian,
    Can you explain little more in detail how to create this process?

    Changing current approval workflow is fine, this workflow will be assigned to a new Shelf where no requests are pending at this stage. (Guess it doesn't mess with requests that have already been approved with old approval workflow?).
  • 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').

  • I did a copy of the process "VI_ESS_PersonWantsOrg_Send Mail when Closed", connected it to the event "ORDERGRANTED" and changed the email address to where i want it to be sent. My idea was to send the exact same email that should be sent to the recipient to another email as well since this contains all the information i want.

    This triggered a job but the job got frozen saying:
    ErrorMessages = [System.ArgumentNullException] Value cannot be null.
    Parameter name: idMail

    Looking at the job in job queue, it doesn't generate any MailID value.

    Any ideas?`

    Thanks.
  • 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.

  • Re-created everything from scratch again and now it suddenly works. Don't know what the issue before.
    Thanks!