How to specify multiple recipients in the finish workflow activity

  • 3236621
  • 03-Oct-2006
  • 26-Apr-2012

Environment

Novell Designer 1.2 for Novell Identity Manager

Situation

How to allow for multiple email recipients in finish workflow activity

Resolution

For Designer(1.2 or M3) the way to send email to multiple recipients is to change the RequestDefs XML code of the workflow.

As an example, if you add a CC to the notify template only the initiator receives the "Provisioning Approval Completed Notification” email, when the to is left default. If you change the TO from "_default_” to you should see the email sent to a CC.

To send an email to more then one "TO" you have to add another target=”TO” line. Below are two examples of how this can be done:


If you change the TO from "_default_” to <map source="IDVault.get(initiator, 'user', 'Email')" target="TO"/>
you should see the email sent to a CC.

To send an email to more then one "TO" you have to add another
target=”TO” line. Below are two examples of how this can be
done:

example 1:

<finish-activity activity-id="finish">
<display-name xml:lang="en">Finish</display-name>
<notify template="cn=Provisioning Approval Completed Notification,cn=Default Notification Collection,cn=Security">
<map source="'false'" target="AUTHENTICATE"/>
<map source="IDVault.get(initiator, 'user','Email')" target="TO"/>
<map source="IDVault.get(recipient, 'user','Email')" target="CC"/>
<map source="process.getName()" target="requestTitle"/>
<map source="process.getRequestId()" target="requestId"/>
<map source="process.getTimestamp().toString()" target="requestSubmissionTime"/>
<map source="process.getApprovalStatus()" target="requestStatus"/>
<map source="IDVault.get(initiator, 'user','preferredName') + '' + IDVault.get(initiator, 'user','LastName')" target="initiatorFullName"/>
<map source="IDVault.get(recipient, 'user','preferredName') + '' + IDVault.get(recipient, 'user','LastName')" target="recipientFullName"/>
</notify>
</finish-activity>

 
example 2:

<finish-activity activity-id="finish">
<display-name xml:lang="en">Finish</display-name>
<notify template="cn=Provisioning Approval
Completed Notification,cn=Default Notification
Collection,cn=Security">
<map source="'false'" target="AUTHENTICATE"/>
<map source="IDVault.get(initiator, 'user','Email')" target="TO"/>
<map source="IDVault.get(recipient, 'user','Email')" target="TO"/>
<map source="process.getName()" target="requestTitle"/>
<map source="process.getRequestId()" target="requestId"/>
<map source="process.getTimestamp().toString()" target="requestSubmissionTime"/>
<map source="process.getApprovalStatus()" target="requestStatus"/>
<map source="IDVault.get(initiator, 'user','preferredName') + '' + IDVault.get(initiator, 'user','LastName')" target="initiatorFullName"/>
<map source="IDVault.get(recipient, 'user','preferredName') + '' + IDVault.get(recipient, 'user','LastName')" target="recipientFullName"/>
</notify>
</finish-activity>