Dynamic name in email body with email message in html

In the message.txt Dear {0}, when you use the String.Format(Message, record.Item(“Name”).ToString)) will replace the {0} in the message with the String Name.
Here is a simple example.

image
The Assign activity here
messageContent = String.Format(messageContent,“Indrajit Shah”)
Output:
image

Hope this is clear.

1 Like