cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Re: Employee Phone number missing

Did you figure out how to suppress the error?
Highlighted
New Member

Re: Employee Phone number missing

Down to same error.  Has anyone solved?

Highlighted
Regular Visitor

Re: Employee Phone number missing

I was able to resolve this by creating a drop down field and setting the Items property as "First(EmployeeProfile).BusinessPhones". 

Highlighted
Helper I
Helper I

Re: Employee Phone number missing

I haven't gone back to it.  It appears like it is some sort of initialization issue, where the user isn't known when the app starts.

Highlighted
New Member

Re: Employee Phone number missing

Unfortunately @LeSmanSP creating that drop down menu did not work for me... I'm still getting the error "Office365Users.UserProfile failed: The method 'UserProfile' has an invalid value for parameter 'userId'" whenever the app is started 😞

 

I created the drop down menu on the initial employee directory search page and set the visibility to False.

 

Any other suggestions?

 

Highlighted
New Member

Re: Employee Phone number missing

Ok, hope this helps anyone else who is going crazy trying to get this working.

 

I created a drop down menu as described below, but as my text I put: First(Office365Users.UserProfile(First(EmployeeProfile).UserPrincipalName).BusinessPhones)

 

This loaded the array at initialisation and I'm no longer getting the error at application start.

Highlighted
Regular Visitor

Re: Employee Phone number missing

The information is stored in the BusinessPhones collection. 

 

So you can set the "Text* property to the following formula: If(IsBlank(First(First(EmployeeProfile).BusinessPhones).Value),"-",First(First(EmployeeProfile).BusinessPhones).Value)

 

and the OnSelect action should be: 

Launch("tel:"&First(First(EmployeeProfile).BusinessPhones).Value)

Highlighted
Frequent Visitor

Re: Employee Phone number missing

 

First(Office365Users.UserProfile("AnotherUser@contoso.com").BusinessPhones).Value

Will this formula only work for the user whose email is in place of "anotheruser@contoso.com"? If so, what should I put in place of that example email in order for the business phone number to show up for each user that accesses the app?

 

Thanks!

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,244)