Discussion
DLL Group
NL
Last activity: 6 Apr 2021 7:22 EDT
Bug: Email reports not populated on Analytics tab in Email manager portal
Hi,
When setting up an email bot in Pega 8.5.1 I observed that the three OOTB email reports (graphs) were not populated. Showing these OOTB email reports is a cool feature when giving a demo so I investigated why this was happening.
I am happy to share the root cause and hope they may be helpful for other architects in the future.
When I created an email account in Pega 8.5.1 in dev studio a number of warnings were introduced saying that I should use application settings for some of the fields. So I created application settings and used the data page D_GetApplicationSettingValue to to populate the fields. One of these fields was the field Email address in which I added =D_pxGetApplicationSettingValue[OwningRuleset:"EmailBot",Purpose:"EmailUserID"].pySettingValue instead of the Email address.
This causes an error in the activity pyPreProcessInteractionCase (step 7) as emailaddress is not compared with the value in the application setting but with the string in the field Email address.
This makes that property pyAccountID is missing in Declare Index pyTrackTriageActions causing the analytics tab not being populated in the Email manager portal.
After adding the email address and justifying the warning the analytics tab started showing results.
By the way, when you create the email account in the app studio and do not use application settings at all you won't run into this issue and no errors will be raised telling you to use application settings when saving the email account.
As I could not find an article yet that reported this behavior I decided to share it. Hopefully it saves some colleagues some time in the future.
Regards,
Michiel Jonkers