Was working then broke recently with
"Office365Users.UserPhoto failed: The method 'UserPhoto' has an invalid value for parameter 'userid'"
Had to make this change:
That solved my problem, but my previous formula displayed a sample photo if one did not exist and I'm not sure how to insert this:
Any help appreciated.
Hey - for the missing image when the user doesnt have an image uploaded to o365 - Brian Dang released a youtube clip showing you need to have an icon in place behind your image call - so then if your image call is empty, the icon image will show instead - here's his clip - https://www.youtube.com/watch?v=pWUnmtnbJmk
I was able to resolve my issue above. The O365 user call may time out and return the error "invalid userid method" even if you're returning a properly formatted principal id. Also, point of advice, if you have a mysterious or erroneous column in your collection(s) be sure to check any recently changed fields. I've found that Powerapps is pretty quick on the autocomplete and sometimes I've mistakenly typed in a "clearcollect(image3_1)" or something similar with a recent image/object I've been working with.
I'm running into the same issue... seems PowerApps doesn't like handling expressions within the userID field. Any idea what may be throwing this?
This error message is occurring when running the app in the iOS PowerApp app.
Works perfectly in the browser instance and the data loads as it should despite the error message.
Here is my code:
Concatenate( "<h2 style='margin-bottom: 0px !important'>", ThisItem.Member.DisplayName, "</h2><strong>", Office365Users.UserProfile(ThisItem.Member.Email).JobTitle, "</strong><br><ul><li>", ThisItem.'Unit:Division'.Value, "<br><ul><li>", ThisItem.'Unit:Group'.Value, "<br><ul><li>", ThisItem.Unit.Value, "<h4></ul></li></ul></li></ul></li>P: ", First(Office365Users.UserProfile(ThisItem.Member.Email).BusinessPhones).Value, "<br>E: ", ThisItem.Member.Email )
Thanks in advance.
PS. All list items have a member and I've tried the previous suggestions with IsBlank but made no difference.
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020