cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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

Frequent Visitor

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
Highlighted
Community Support
Community Support

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

Frequent Visitor

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,083)