cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BethanyJake
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
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

BethanyJake
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
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

BethanyJake
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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,187)