Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Email body contains attachments names



User is copying the inbound email body to a property in a case. If the incoming email contains attachments, then the property contains email body along with attachment names.

Example, Inbound email body contains "Testing for SR" and has attachments with it (Testing.xlsx), then the property value will be:

Testing for SR

Attachments: Testing.xlsx

Error Messages

Not Applicable

Steps to Reproduce

1. Set up email listener configuration by configuring an email account.
2. Send an email to above email with attachments.

Pega email listener reads the email and copied the body value to pyBody property. This value contains attachment names.

Root Cause

This issue was determined to be an expected behavior for current release.


Perform the following local-change:

Use below code in the service activity to strip the attachment information from pyBody:

String SPACER = "\n\n\n-----------------------------------------------------------------\n";
String EMBEDDED_CONTENT_INIT = SPACER + "Attachments: ";

Published October 26, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us