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.

String.Join(β€œ,”,YourArrVar)

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

Hope it will helps you :slight_smile:
Cheers!!

Hi @mironb

You can use the below syntax:

String.Join(", ", arrayStrings)

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

Regards

1 Like

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

Send Outlook Mail Message (or Send SMTP Mail Message)
To: β€œrecipient@example.com”
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.