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 II
Helper II

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,806)