Hi,
Some users are experiencing strange gallery behavior, for me everything works perfectly.
I am using gallery to show SharePoint list item attachments. Those are always picture format.
When im building app for me everything looks and works normal. After i share application, and SP list permissions some users can't see some of or all of attached images.
Situation changes when i send to user SharePoint list where attachments are stored. Since then all of attached images shows perfectly... Problem is that i can't i don't want share link to my SharePoint list as it is database for me.
Any ideas what i can do with this issue? Please help.
My code i think is irrelevant because it works after user open SharePoint link in his browser.
Solved! Go to Solution.
Hi @SqtaMorda ,
I am not going to try to get my head around that except
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @SqtaMorda ,
Are the users on mobiles devices? If so what code are you using on the Image property of the pictures?
Hi @WarrenBelz
No, they are PC users. And from my experience it doesn't matter what code i use. To show img attachments i used simple .Value, .AbsoluteUri and even i collected attachments into collection. And always there was someone who had this issue. The problem is that PowerApps doesn't pull image content sometimes. Looks like permission problem, but those users can edit and see the list so why not attachments.
Hi @SqtaMorda ,
I have over 100 users in the field on iPads, who daily rely on seeing a (sometimes large) number of attachments that they are required to complete during the day and cannot leave the particular site until they see the file has been saved - this has always been reliable (we do about 10,000 per year) and office staff also view many of them. I have a gallery displaying the attachments with the Items.
LookUp(
SPListName,
ID = TheListItemID
).Attachments
The Image of the image control is
ThisItem.Value
If they are always a picture (JPG,PNG), they should resolve as images in the Image control - be aware that other file types (PDF etc) will not show an image - I have a PDF image I display when it is a PDF file.
If the users have Edit/Contribute permissions, they certainly should be able to see the attachments.
Is there anything different you are doing to the above?
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
In this case i am using Tutorial screen because i find it very friendly to user.
My code to get attachments is:
Set(
varRecord_Szkolenie, LookUp(HR_SZKOLENIA, ID=ThisItem.SZKOL_LINK.Id));
Clear(colGaleriaSlajdy);
ForAll(
LookUp(
HR_SZKOLENIA,
NAZWA_SZKOL = varRecord_Szkolenie.NAZWA_SZKOL
).Attachments,
Collect(
colGaleriaSlajdy,
{
Step: CountRows(colGaleriaSlajdy) + 1 - 1,
Text: "Slajd nr " & CountRows(colGaleriaSlajdy) + 1,
Image: ThisRecord.AbsoluteUri,
Status: If(
varRecord_Szkolenie.NAZWA_SZKOL in colSzkolDone || Value(lblEgzamStatus.Text) = 2,
true,
false
)
}
)
);
then i am using colGaleriaSlajdy as source for TutorialNavigator (tuturial screen) gallery where image has:
If(
IsBlank(_guideStep),
First(TutorialNavigator2.AllItems).Image,
LookUp(
TutorialNavigator2.AllItems,
Step = _guideStep
).Image
)
Like i said, for me works perfecty. Sample below.
Hi @SqtaMorda ,
I am not going to try to get my head around that except
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
@WarrenBelz I don't have any choice than try another approach.
Thank you for your time.
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 |
---|---|
205 | |
70 | |
49 | |
48 | |
20 |
User | Count |
---|---|
252 | |
125 | |
84 | |
75 | |
73 |