cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SqtaMorda
Resolver II
Resolver II

Gallery not showing SP image attachments for some users.

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SqtaMorda ,

I am not going to try to get my head around that except

  • .Value works more consistently than .AbsoluteUri for the Image and
  • I have always simply pointed the gallery directly at the Attachments property of the relevant record and it works flawlessly.
  • A collection is taking the image a step further away from the record item

 

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.

 

View solution in original post

6 REPLIES 6
WarrenBelz
Super User
Super User

Hi @SqtaMorda ,

Are the users on mobiles devices? If so what code are you using on the Image property of the pictures?

SqtaMorda
Resolver II
Resolver II

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.

SqtaMorda
Resolver II
Resolver II

@WarrenBelz 

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.

sample.png

 

Hi @SqtaMorda ,

I am not going to try to get my head around that except

  • .Value works more consistently than .AbsoluteUri for the Image and
  • I have always simply pointed the gallery directly at the Attachments property of the relevant record and it works flawlessly.
  • A collection is taking the image a step further away from the record item

 

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.

 

SqtaMorda
Resolver II
Resolver II

 @WarrenBelz  I don't have any choice than try another approach.

Thank you for your time.

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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