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.
The Assign activity here
messageContent = String.Format(messageContent,“Indrajit Shah”)
Output:
Hope this is clear.