cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adzocol
Helper I
Helper I

Handle Failed O365 Connector messages

Hi All,

In my App OnStart I am setting up some variables. One such variable is to get the Line Manager of the current User. It worked fine except for those Users who do not have a Line Manager registered in Azure. So I amended the code to this

 

 

Set(
varManager,
If(
IsBlank(Office365Users.ManagerV2(User().Email)),
"No Manager Listed",
Office365Users.ManagerV2(User().Email).displayName)
);

 

 

Again, works great. But, whenever the app loads, if the current user does not have a Line Manager, I still get the attached error. Any idea how I can handle this so it does not appear. Assigning a Line Manager is not an option I'm afraid. 

 

Many thanks,

Colz

1 ACCEPTED SOLUTION

Accepted Solutions
VijayTailor
Resident Rockstar
Resident Rockstar

Hi Adzocol,

 

As I tried Different Ways for this Issue, I found this workaround for your Issue.

Workaround. - Create a Flow and Get this Details from Flow. and Call that flow in App Load.
if you Want you can also use the below-attached flow, that I created for this Testing Purpose.

Hope this Workaround will resolve your issue.

VijayTailor_0-1600598229612.png

 Paste the below Code in App Load Section.
Set(getManager,'TestManagerName'.Run(User().Email).managername);
On Screen

VijayTailor_0-1600598766756.png

 

 
 
 

 

Also, Find the TestingApp Create for this Issue If required.

VijayTailor_1-1600598332132.png

 



if you accept this as a solution, please mark this post as Answered.




 

View solution in original post

3 REPLIES 3
adzocol
Helper I
Helper I

Anyone have any idea how to handle this? It doesn't break anything but just doesn't look great to Users of the app. I can't quite understand why it doesn't return 'null'. if the object doesn't exist. At least I could handle that in an elegant way and the User is unaware.

ManagerV2Error.JPG

 

VijayTailor
Resident Rockstar
Resident Rockstar

Hi Adzocol,

 

As I tried Different Ways for this Issue, I found this workaround for your Issue.

Workaround. - Create a Flow and Get this Details from Flow. and Call that flow in App Load.
if you Want you can also use the below-attached flow, that I created for this Testing Purpose.

Hope this Workaround will resolve your issue.

VijayTailor_0-1600598229612.png

 Paste the below Code in App Load Section.
Set(getManager,'TestManagerName'.Run(User().Email).managername);
On Screen

VijayTailor_0-1600598766756.png

 

 
 
 

 

Also, Find the TestingApp Create for this Issue If required.

VijayTailor_1-1600598332132.png

 



if you accept this as a solution, please mark this post as Answered.




 

View solution in original post

Hi Vijay,

 

Genius. Works a treat my friend. Thank you very much for this. 

 

Best regards,

Col

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,472)