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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,603)