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
v-yuxima-msft
Community Support
Community Support

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

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
v-yuxima-msft
Community Support
Community Support

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

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (56,770)