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

UserPhoto and UserPhotoV2 error

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

 

Office365Users.UserPhotoV2 failed: The method 'UserPhoto' has an invalid value for parameter 'id'

 

Getting this error everytime during Runtime.

 

I am able to view the profile photos of otherusers but still get this error.

 

My Code:

Office365Users.UserPhotoV2(ThisItem.About_Resource)

 

14 REPLIES 14

Hey @Anonymous 

 

Glad that it worked!! Please let us know if you continue to face any issue. 

 

If this question/ query is resolved, please mark as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi @yashag2255  I am getting this error message.

 

I am using:            Office365Users.UserPhotoV2(varUser.Email)

the image is populating correctly, but still getting error message - Office365Users.UserPhotoV2 failed: The method 'UserPhotoV2' has an invalid value for parameter 'id'.

 

Could you help me with this?

Thanks!

I got the same error as @garrettl said, anyone can help?

llserra
Helper III
Helper III

Hi ,i have same problem with id, really i don't  know how to fix it.

 

In my grid, i have some that are in my office and some not ,for this not people i have a problem with id.

Y tryed for example this:

where:

sin_Imagen-> Its a simple image to display if the item ThisItem.Enviado_por does not exist in my organization

 

If(IsBlank(First(Office365User.SearchUser({searchTerm:ThisItem.Enviado_por})).Mail);
sin_Imagen;
Office365Use.UserPhotoV2(First(Office365User.SearchUser({searchTerm:ThisItem.Enviado_por})).Id);
)

 

It's really strange because i type just only:

 

If(IsBlank(First(Office365User.SearchUser({searchTerm:ThisItem.Enviado_por})).Mail);
sin_Imagen;
sin_Imagen
)

Works and all people with image: sin_imagen

 

If i type:

Office365Use.UserPhoto(First(Office365Use5.SearchUser({searchTerm:ThisItem.Enviado_por})).Id)

 

Works for all people in my office, display his image ,but for people doesn't it display error with id

 

And for:

 

If(IsBlank(First(Office365User.SearchUser({searchTerm:ThisItem.Enviado_por})).Mail);
sin_Imagen;
Office365Use.UserPhotoV2(First(Office365User.SearchUser({searchTerm:ThisItem.Enviado_por})).Id);
)

 

Not image for anyone

 

Any idea?

Thanks for all

 

Perfect

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,680)