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

Office365 Users. ManagerV2

Morning/Afternoon/Evening all..

I have a small issue using the connector / function mentioned.~

My expression as written currently is - 

If(IsBlankOrError(Office365Users.ManagerV2(ThisItem.Id).displayName),"No Manager Set",Office365Users.ManagerV2(ThisItem.Id).displayName)

The If(IsBlankorerror was added by me trying to get around an error it was flagging up.

This is used in a label in a gallery which is just -

Office365Users.SearchUserV2().value

I'd like to add my label as an AddColumns filed but it won't let me as the formula suggests errors.

The label does show errors however it does populate as expected in my gallery

Any ideas please?

LiamR89_0-1605528164059.pngLiamR89_1-1605528249423.png

 



1 ACCEPTED SOLUTION

Accepted Solutions

Thanks @FabianAckeret ,

I can work around / without it anyway.

Ideally I want to use this to set the users manager on app start, if this is blank then navigate them to a page advising them to speak to their manager and ask for AD to be updated.
As the set stage may fail , I can't then navigate though.

For now, I'll go without this feature and try and pick it up in my flow that they have no manager.

View solution in original post

2 REPLIES 2
FabianAckeret
Super User
Super User

Hi @LiamR89 

 

Unfortunately, if the field is blank there is no way to get around this error since it's coming straight from the API.
You can choose to ignore it if you like. Perhaps, and hopefully, this will be updated one day...

 

For your reference, I've put together some posts reporting the same issue:

https://powerusers.microsoft.com/t5/Building-Power-Apps/If-the-users-manager-is-blank/td-p/578693

https://powerusers.microsoft.com/t5/Building-Power-Apps/The-service-returned-an-error-Office365Users... 

 

I was getting annoyed about this one as well, once... Let's hope for the best.

 

Kind regards,

 


Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.

Thanks @FabianAckeret ,

I can work around / without it anyway.

Ideally I want to use this to set the users manager on app start, if this is blank then navigate them to a page advising them to speak to their manager and ask for AD to be updated.
As the set stage may fail , I can't then navigate though.

For now, I'll go without this feature and try and pick it up in my flow that they have no manager.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,180)