web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show only the images o...
Power Apps
Answered

Show only the images of the attachments uploaded to the sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have the following formula in my gallery and it works well, return all attachments                          

                                                                   

Lookup(
'Facturation control';
ID = Gallery3_2.Selected.ID
) 'Attachments'

 

but now i just want to show the attachments which are images using something like

 

EndsWith (Attachments.DisplayName; "jpg") Or EndsWith (Attachments.DisplayName; "png")


How can I implement these formulas in the filter?

Categories:
I have the same question (0)
  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @Anonymous ,

    Try the below:

     

     

    Filter(Lookup(
    'Facturation control';
    ID = Gallery3_2.Selected.ID
    ).'Attachments',EndsWith(DisplayName,"jpg") || EndsWith(DisplayName,"png"))

     

     

     
    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for answering @KrishnaV 

     

    your formula works just remove the DisplayName from this part:


    . 'Attachments'.DisplayName

     

    The formula I used was:

     

    Filter (Lookup(
    'Facturation control';
    ID = Gallery3_2.Selected.ID
    ) 'Attachments', EndsWith (DisplayName, "jpg") || EndsWith (DisplayName, "png"))

     

    since I show the images with the property

    AbsoluteUri

    thanks for giving me the solution

  • KrishnaV Profile Picture
    5,023 on at

    that was just copy-paste error, I have used it in my local without .displayname. however, I have corrected so that the new members make use of that. thank you for letting me know.

     

    Regards,

    Krishna

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard