cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cyberco01
Level 8

The Office365Users.Manager is giving error message

Dear All,

 

In my powerapps form linked to sharepoint list, I am trying to check a condition where the manager of the created by user (author) of the list item and the current user is same or not.

To achieve this I used the formula :- 

If(Office365Users.Manager(ThisItem.Author.Email).Mail=User().Email || User().Email="abc@xyz.com" || User().Email="mno@xyz.com",Edit,View)

but i get the below error message - 

Office365Users.Manager Failed: The method 'Manager' has an invalid value for parameter 'userId'

 

I even tried to use Office365Users.ManagerV2 - still the same.

Kindly help as I am very new to powerapps and in the learning process.

 

AuthorManagerError.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: The Office365Users.Manager is giving error message

Hi @cyberco01 ,

 

Is it a SharePoint list people field? If so, please unlock the data card and set the DisplayField of the dropdown control to:

["Email"]

Capture.JPG

 

After this, you will find that this dropdown control would show the value with email. Then instead of using ThisItem.Author.Email, use DataCardValue16.Selected.Value in your formula.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: The Office365Users.Manager is giving error message

Hi @cyberco01 ,

 

Is it a SharePoint list people field? If so, please unlock the data card and set the DisplayField of the dropdown control to:

["Email"]

Capture.JPG

 

After this, you will find that this dropdown control would show the value with email. Then instead of using ThisItem.Author.Email, use DataCardValue16.Selected.Value in your formula.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Administrator
Administrator

Re: The Office365Users.Manager is giving error message

Hi @cyberco01 how are you progressing with this? Was the above reply helpful? 

 

@TopShelf-MSFT 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 152 members 5,274 guests
Please welcome our newest community members: