Custom email body based on subject

Hello,
I’m beginner here looking for advice

I have an Excel template that contains the subjects and recipients to send emails automatically.

What if I want to customize the email body based on the subject, for example: if the subject is “A”, then the body text is “thank you”

Do I have to add the email body content to the excel template or add if else conditioning?

Thank you

Hi @zahranabilafalenanda

You can use Else If condition and if the subject is A, then you can use Create HTML Content to create the body based on the required subject.
CurrentRow("Subject").ToString.Equals("A")

Regards

Hi @zahranabilafalenanda

Can you try like below

CurrentRow("Subject").ToString.Equals("A")

Cheers!!

Hi @zahranabilafalenanda

You can use IF or ElseIF Activity here and For Subject: Write in activity itself or take in from Config according to your requirement.

Happy Automation :slight_smile:

This is very helpful, thank you very much!

1 Like

You’re welcome @zahranabilafalenanda

Happy Automation
Regards

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