cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple recipients to send mail step

Former Member
0 Kudos

Hi,

I have custom Z table holding recipients of notification (when employee leaves company). Now I need to assign multiple recipients (from this Z table) to send mail step in my workflow. Is it somehow possible? Thanks in advance.

Tomas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create an element in the workflow container which is of type 'multiline'. Create a new task to get the agents as per your requirement from the Ztable and populate this element. Then use the same element in the Sendmail Step to send the mail to many recipients.

Hope this will help.

Regards,

Samson

Former Member
0 Kudos

Hi,

thanks for advice, I did it this way. I implemented method in BO EMPLOYEET (calls a function module), that fills the multiline workflow container element. Then I use this element in the send mail task as an e-mail address and it works.

Best regards,

Tomas

Answers (4)

Answers (4)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

Using custom code, determine entries frm this Ztable and populate in a multiline container element of type wfsyst-agent and use it in expression of send mail step.

You can also refer this

[thread|]

Regds,

Akshay

Former Member
0 Kudos

hi,

You can add multiple agents or recipent in Agent assignment in tasks.

Make ur mail an activity then make a task and further you can assign multiple agents.

Thank you

former_member193382
Active Contributor
0 Kudos

Hi Tomas,

You can use the loop step. Read the table entry in a custom method and pass the value from method container to task container and from task to workflow container. Then increment the loop counter and read the next entry. Follow the same to send mail to all users in the Z-table.

Regards,

Raj