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";
ClipboardPagecpListener = 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 May 15, 2017 - Updated May 30, 2017

Have a question? Get answers now.

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