How to display an array of strings in the body of an Email activity

I receive a string array for the WF of the email
I want to display every word that exists in the array in the body part of the email
Is there a way to do it?

Hi @mironb

Use below expression in you mail Body.


Note: Here β€œ,” (Comma) is separator between every item in your array elements.

Hope it will helps you :slight_smile:

Hi @mironb

You can use the below syntax:

String.Join(", ", arrayStrings)

You can use this in the body of Send Outlook Mail Message.


1 Like

To: emailBody
Value: String.Join(Environment.NewLine, wordArray)

Send Outlook Mail Message (or Send SMTP Mail Message)
To: β€œ”
Subject: β€œWord Array Elements”
Body: emailBody

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.