Hi All
I m trying validate the filed Image in Gallery, which I did figure out how to do it in certain ways, but it shows and error while running the app saying invalid userid I do not know whats the error actually for as the Id which I have passed is the email ID only and still showing the error as follows:
Any leads on this error experts/.
Please see that I used the formula something like this in Gallery Image.
ON image:
If(Office365Users.UserPhotoMetadata(ThisItem.'Created By'.Email).HasPhoto , ThisItem.'Created By'.Picture , 'collaboration-female-male' )
Please note I also tried below formula as suggested in one of the article and solutions on PowerApps Community but did not seems to be working fine for me.
If(!IsBlank(ThisItem.'Created By'.Email), If(Office365Users.UserPhotoMetadata(ThisItem.'Created By'.Email).HasPhoto , ThisItem.'Created By'.Picture , 'collaboration-female-male' ))
AND
If(!IsBlank(Text(ThisItem.'Created By'.Email)), If(Office365Users.UserPhotoMetadata(Text(ThisItem.'Created By'.Email)).HasPhoto , ThisItem.'Created By'.Picture , 'collaboration-female-male' ))
BUT NO LUCK
Thank you for helping on, much appreciated your time and efforts
Thanks a million.
A few observations/questions:
Hello @GarethPrisk ,
Thank you so much for your quick response, would like to inform you that I'm using my Sharepoint as Datasource, and hence the filed I have used in is Created by as you see in post.
Also AS per your suggestion I tried using set Variable if im not mistaken but still it shows an error and not accepting the formula.
Can you please give me an example if im wrong would help me a lot sir.
Thanks a million
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
195 | |
67 | |
46 | |
41 | |
28 |
User | Count |
---|---|
255 | |
119 | |
86 | |
84 | |
83 |