Pega Robotics (RPA): Microsoft Outlook Body is not sent to Pega Case

I tried to connect to Microsoft Outlook and Get the content of the Email body. I could get all the content (Body, HTML Body) while Debugging.

But while mapping the body attribute to a Property in Case Type, content is not stored in expected format. The response is not consistent. Some times Automation doesn't respond at all.

Is there any easiest way to map entire body and other email attributes as is to the Work Object properties (I tried mapping HTMLBody as well, still same issue).

One small observation is that : whenever it finds a special character, ":" or "," it ignores rest of the string while mapping.

** Attached my automation.

**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.

Group Tags


Keep up to date on this post and subscribe to comments

May 11, 2017 - 10:47am

This sounds like the special characters are causing the web service call to view the data as malformed.  When this happens I like to encode the string first.  This may cause some issues at the other end but at least the data will get there.  I use a static method to do this.  On the Toolbox select Choose Items, then select the Pega Robotics Static Methods tab.  Select the highlighted items in the screenshot below to add the HtmlDecode and HtmlEncode methods to your toolbox.

No to use this, just encode your Body before adding to the case.

May 11, 2017 - 6:50pm
Response to jeffbadger

Hi Jeff,

Thanks for the reply. I tried the option that you suggested, but for some reason its not working as expected. I still see the same issue.

I am attaching the screenshot of my Automation. Please suggest if I am doing something wrong.

May 19, 2017 - 8:07am

Have you looked at the output?  Send the encoded email to a textbox to see what might be the issue.