cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
v-joriva
Microsoft
Microsoft

Office365Users.ManageV2

Hi All,

 

Yesterday this formula If(IsBlank(DropdownRequestorPDM.Selected);Parent.Default;Office365Users.ManagerV2(DropdownRequestorPDM.Selected.Id).jobTitle) was with no error, but today I have a problem 

 

Error of Office365Users.ManagerV2:{"error":{"code":"Request_ResourceNotFound","message":"Resource 'manager' does not exist or one of its queried reference-property objects are not present.""innerError":{requqest-id:"746ac166-2f1a-46af-9882-10130b052fcd","date":"2019-08-28T16:31:27}}}

 

Thanks

6 REPLIES 6
v-siky-msft
Community Support
Community Support

Hi @v-joriva .

 

Did you changed the user the next day? Does the user you select have a manager when you meet error?

I have made a test on my side, and find that when the user selected from DropDown have no manager, the error you describe will show up. But if the user has a manager, It would work well.

Capture3.PNG

So you should sign into Azure AD Portal as a User administrator for the organization to confirm the user’s Manager Info.

Please follow the path: Home > Users - All users >   [User] – Profile >  Job Info - Manager.

If there is no manager, you have to click the ‘change’ button and assign the manger to User. Then try again in PowerApps to check if the issue has been fixed.

Annotation 2019-08-29 143023.png

For more information about Azure AD, please refer to this doc: Add or update a user's profile information using Azure Active Directory

 

Best regards,

Sik

What about cases where the person doesn't have a manager, e.g. the CEO, contractors, and service accounts?

There is currently no way to handle it.

The best bet would be you do a manual check and if there is null responded you can use if and else

If(IsBlank(Office365Users.ManagerV2(Dropdown3.SelectedText.Value).jobTitle),"No Manager",Office365Users.ManagerV2(Dropdown3.SelectedText.Value).jobTitle)
RameshMukka
Continued Contributor
Continued Contributor

@Rahber @v-siky-msft Though I have handled the issue with "No Manager" message, how do get rid of the error prompt shown on the top of the screen?

Hello Ramesh, can you please tell how you handled No Manager issue? In my situation user doesn't have manager and this action throws an error. Please advise.

 

Thank you.

@KalyanPolasi

I have below formula at OnStart of the app. I dont see any error

Set(
        varManager,
        Coalesce(
            Office365Users.ManagerV2(varUser.mail).displayName,
            "Ramesh Mukka"
        )
    )

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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