Question

Format Outlook message body

Hi,

I am trying to use Pega Robotics to send emails to an employee list by reading an excel column which contains Emp names.I collect Emp data from company CRM.I am able to send emails repeatedly.but the problem is that by using the body and subject properties of the Outlookmail component, I can just include one property value.I want to format the message body including multiple properties.Any idea how to do it?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
July 26, 2017 - 10:06am

I think what you are asking for is how to generate a string that you can enter into the body property. The StringUtils component has a couple methods to generate strings that you can use. The simplest is the Concat method. It allows you to pass several strings and concatenate them together to generate your final output. You might also use StringFormat if you are familiar with that method from C#.

Comments

Keep up to date on this post and subscribe to comments

Pega
July 24, 2017 - 4:04pm

Use the body property of the outlookmail component

http://help.openspan.com/80/Components/Email_Variable.htm

Pega
July 26, 2017 - 10:06am

I think what you are asking for is how to generate a string that you can enter into the body property. The StringUtils component has a couple methods to generate strings that you can use. The simplest is the Concat method. It allows you to pass several strings and concatenate them together to generate your final output. You might also use StringFormat if you are familiar with that method from C#.