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 / how to display SP list...
Power Apps
Answered

how to display SP list Attachment PDF as thumbnail in gallery image

(0) ShareShare
ReportReport
Posted on by

as per below video from Reza ,i just added path in image properties but it not displaying thumbnail, showing blank

 

https://www.youtube.com/watch?v=3dNeMVLZDHo

 

any thing wrong in below path code

"https://azureXXX.sharepoint.com/_layouts/15/getpreview.ashx?path ="&First(ThisItem.Attachments).AbsoluteUri

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @venky232 

     

    Remove the space after path?

     

    Damien

  • venky232 Profile Picture
    on at

    removed space ,still showing blank

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @venky232 

     

    Can you share a screenshot of the control and expression to help understand your setup?

     

    Damien 

  • venky232 Profile Picture
    on at

    venky232_0-1648029048533.png

     

  • venky232 Profile Picture
    on at

    i also kept full url path, also it is no displaying image

    "https://XXX.sharepoint.com/sites/ABC_MS/Lists/TGP/AllItems.aspx?skipSignal=true&noAuthRedirect=1/_layouts/15/getpreview.ashx?path="&First(ThisItem.Attachments).AbsoluteUri

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @venky232 

     

    I've just built this out myself.  You don't need to prepend the URL - or at least I don't.

     

    I simply used First(ThisItem.Attachments).AbsoluteUri and it worked fine for me.

     

    Damien

  • venky232 Profile Picture
    on at

    yes it will work for normal image ,but not displaying pdf thumbnail

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @venky232 

     

    Apologies.  I have uploaded a PDF and tried the following:

     

    DamoBird365_0-1648151750361.png

     

    DamoBird365_1-1648151883149.png

     

     

    This is my expression:

    "https://abdndamodev.sharepoint.com/_layouts/15/getpreview.ashx?path="&First(ThisItem.Attachments).AbsoluteUri

     

    Damien

  • exploringG Profile Picture
    82 on at

    Hello venky232,

     

    have you resolved this problem? I'm having the same problem like yours. With this Uri function, both of the image and pdf thumbnail are not showing. I have no idea why. Only using the First(ThisItem.Attachments).Value is fine for me without the uri in front of &.

  • paulod1 Profile Picture
    2 on at

    Hi

    I'm experiencing the same issue. On Friday after several attempts everything was working, but now on Monday it has reverting to showing the following instead of the attachment thumbnail.

    I am using - 

    "https://site.sharepoint.com/_layouts/15/getpreview.ashx?path="&First(ThisItem.Attachments).AbsoluteUri & "&Resolution = 6"

     

    All help appreciated

    paulod1_0-1661114778550.png

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard