sergeluca / Power-Platform-BPM-Toolkit

Power Platform BPM Toolkit
MIT License
68 stars 12 forks source link

My Dashboard does not show cases #15

Open glashinc opened 1 year ago

glashinc commented 1 year ago

In some AD implementations the UPN is different from the email address. In these cases the My Dashboard app does not show the cases entered for the user. This is because in the PPA_ORDER app the email address is added to the case using Office365Users.MyProfileV2().mail (the real email address) while the My Dashjboard app looks for cases tagged with User().Email (the UPN).

This can be corrected by changing the code in the OnStart event in the My Dashboard app to use: Set ( gblCurrentUserEmail, Office365Users.MyProfileV2().mail );

instead of Set ( gblCurrentUserEmail, User().Email );