How To Include HTML table In Mail Body With Dynamic Values – UiPath

Sometimes we might need to send the emails which will contain the tabular data in it…

This small HTML template can help you in inserting tabular structure inside the mail body.

Implementation using UiPath :

In the Html Template file provided, Add the required number of “tags” for the required number of rows inside the table.

Step 1:
Drag Read Text File activity into the designer panel and provide the html file path to it.

Read the Html Content into a String Variable UserData.

Step 2:
Drag Assign activity into the designer panel and Use the Replace method to replace the “varXXX” values with the respective variables to pass the data dynamically.

Step 3:
Drag Send Outlook Mail Message activity into the designer panel and try to provide the required property fields i.e SUBJECT,TOMAIL e.t.c along with the “UserData” Variable that we have with us from the above steps performed and check the property “IsBodyHtml” .

Final Flow

Click here to download the Source Code…

Hope it has helped you…

Leave a Reply