Send mail with static and dynamic value combination in subject and comment

I am using mail step of Workflow to send an email from process studio.

I want to add some static text in combination with a dynamic value in comment and subject.

How can I do this.?

Hi Aditi,

You can use modified java script step before mail step in a workflow and create subject/body variable and assign static+dynamic value in combination like we assign it to any string.

eg. var Company = “AE”; // this can be considered as any variable accepting dynamic value
eg. var mailBody = "Welcome in journey of " + Company + “.”;

1 Like

Thanks Rohini.

Mail step is getting triggered but it is not sent. Means i cannot see the mail in inbox.

When I am giving hardcode values in subject and comment it is working.

Thanks Rohini.

It worked .