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

Fetching email listener and email account from service activity

SA-37960

Summary



User wants to retrieve the below information from the mail service activity:
  • Email listener information
  • The email account information the email listener is monitoring, like email address that is associated with the email account.


Error Messages

listenerName page NULL


Steps to Reproduce



User tried the below code which works fine for file listener but not for email listener:


String listenerName = "UNKNOWN";
ClipboardPage cpListener = tools.findPage("pyListenerPage");

if (cpListener != null) {
listenerName = cpListener.getString(".pyListenerName");
oLog.error("listenerName page dump is" + cpListener.getXML() );
}

Root Cause



User is not able to fetch listener name and email account details from service activity.

User is trying to read the details by accessing the "pyListenerPage" which is not available.

Resolution



Apply HFix-34274.

Published June 1, 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