cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BethanyJake
Level: Powered On

False errors when looking up data in a new form from Office365Users

So what I'm trying to do is look up the leader, leader email and job title of the team member that is entered in the form.  I know there was a previous thread on this and I am using the exact same code but still getting the errors. 

 

Here's my code:

If(!IsBlank(DataCardValue13),If(FrmEditForm.Mode= FormMode.New,Office365Users.ManagerV2(DataCardValue13.Selected.Email).displayName,Parent.Default))

 

DataCardValue13 is a people picker connected to a sharepoint people and groups field.

 

Now it works just fine. I get the exact results I want, but I don't want it to throw errors at my end users, which is what it is doing.  I get this error:

 

Office365Users.ManagerV2 failed: The method 'ManagerV2' has an invalid value parameter 'id'

 

I change it to 'Manager' rather than 'ManagerV2' and get this error

Office365UsersManager failed: The method 'Manager' has an invalid value for parameter 'userId'

 

I know this has been discussed and I did the exact solution and am still getting errors, any idea what I can do to resolve?

 

Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: False errors when looking up data in a new form from Office365Users

Hi @BethanyJake ,

 

Do you have one blank value?

Could you please share your control and its formula expression by screenshot?

I test on my side,If the selected is Blank it will show this error message also, it means there is one invalid value.

20190429invalidID.PNG

 

So please check whether there is the invalid value.

 

Best Regards.

Yumia

View solution in original post

BethanyJake
Level: Powered On

Re: False errors when looking up data in a new form from Office365Users

The control is a combo box with the following formula for items:

Choices('Accuracy Adjusters'.TeamMember)

 

it isn't really helpful.

 

However, I figured it out...  I changed it to

If(FrmEditForm.Mode= FormMode.New&&!IsBlank(DataCardValue13.Selected),Office365Users.ManagerV2(DataCardValue13.Selected.Email).displayName,Parent.Default)

 

I improved the formula a bit.  But it was adding .Selected that took care of the error.


Thanks for responding!

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: False errors when looking up data in a new form from Office365Users

Hi @BethanyJake ,

 

Do you have one blank value?

Could you please share your control and its formula expression by screenshot?

I test on my side,If the selected is Blank it will show this error message also, it means there is one invalid value.

20190429invalidID.PNG

 

So please check whether there is the invalid value.

 

Best Regards.

Yumia

View solution in original post

BethanyJake
Level: Powered On

Re: False errors when looking up data in a new form from Office365Users

The control is a combo box with the following formula for items:

Choices('Accuracy Adjusters'.TeamMember)

 

it isn't really helpful.

 

However, I figured it out...  I changed it to

If(FrmEditForm.Mode= FormMode.New&&!IsBlank(DataCardValue13.Selected),Office365Users.ManagerV2(DataCardValue13.Selected.Email).displayName,Parent.Default)

 

I improved the formula a bit.  But it was adding .Selected that took care of the error.


Thanks for responding!

View solution in original post

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 (Last 30 Days)
Users online (4,952)