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

Apostrophe character being stripped from email addresses

SA-31670

Summary



Error is found when sending a mail to the email id with Apostrophe, for example: name.sur'[email protected]),
The apostrophe is stripped from the email address thus the error is being shown.


Error Messages


The email address you entered couldn't be found.


Steps to Reproduce



1) Create flow.
2) Run the flow and add any interested party while creating the Work Object (WO).
3) Provide the email address of interested party which having the apostrophe.


Root Cause



It is bug in the product.

Resolution



Perform the following local-change:

​In the activity 
PopulateRecipients(Data-Corr-Email) replace the following code snippet in all the 2nd, 3rd and 4th steps 

primaryPage.putString(".pyToString", sbAddresses.toString().replaceAll("'", "")); 
 
with the below code:

String emailAddressFinal = sbAddresses.toString().replaceAll("','", ",").replaceFirst("'", ""); 
primaryPage.putString(".pyToString", emailAddressFinal.substring(0, emailAddressFinal.length()-1));

Published January 3, 2017 - Updated October 8, 2020

Was this useful?

100% 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