Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

How to GET a SP document full size Thumbnail as an image

(2) ShareShare
ReportReport
Posted on by 39
Hi everyone,
 
I'm currently trying to save as an image my documents thumbnail in SharePoint. I tried few solutions : 
 
1- With HTTP action (💎Premium so not my go to for production) : It works very well as expected, I can get full size thumbnail from Power Apps "Gallery.Selected.Thumbnail.Large" as URI (It cames specifically from power apps because I'm targetting specific document from my App)
 
HTTP
 
2- with this blog post SharePoint Online. Document Thumbnail : It works BUT : for any reason, the size is 440x311 max, whatever the resolution i'm using (while the first solution gave me something up to 800px which was nice)
 
SEND AN HTTP REQUEST TO SHAREPOINT
3- Mix and match solution 1 & 2 : What if I use my Power Apps output as URI ?
 
SEND AN HTTP REQUEST TO SHAREPOINT
 
With UrlPDF https://westeurope1-mediap.svc.ms/transform/thumbnail?provider=spo&inputFormat=pdf........................................................... which is a SharePoint API web address that return an image
 
🛑 For any reason, I got this output : 
 
"body": {
        "status": 401,
        "message": "404 NOT FOUND\r\nclientRequestId: a26a3af4-73c8-49f5-9103-b140c9e3da0c\r\nserviceRequestId: 43c294a1-40ac-c000-88e5-2c0ba6f02a54",
        "source": "https://mytenant.sharepoint.com/sites/T.SFS-0140-SECURITE/https://westeurope1-mediap.svc.ms/transform/thumbnail?provider=spo&inputFormat=pdf........................................
 
⁉⁉⁉ Why the hell is he adding my sharepoint site at the begging
 
I tried to put in the body of my request an expression "replace(....,'https://mytenant.sharepoint.com/sites/T.SFS-0140-SECURITE/' , '') but it does not works
 
I know the best of you got the solution, I'm just to bad to understand how to solve it :(((((
 
thanks for your help guys
 
 
  • ronaldwalcott Profile Picture
    3,497 on at
    How to GET a SP document full size Thumbnail as an image
    Just because that document says that does not mean that it is accurate,
    There is no way that a thumbnail would be 2500 px or even 1600 px
  • GREGWOUARE Profile Picture
    39 on at
    How to GET a SP document full size Thumbnail as an image
     
     
    Yes that what I was thinking about, but I'm still wondering why we can choose the Thumbnail size :

    Thumbnail Size

    Thumbnail size based on its width. Height calculated dynamically. To change the size use resolution parameter. Possible values:

    • 0 - 300px
    • 1 - 480px
    • 2 - 750px
    • 3 - 1024px
    • 4 - 1600px
    • 5 - 2560px
    • 6 - Original width of the document

    If parameter is empty the width will be 300px (default value). If requested width of the document exceed original one the original width will be used for rendering.

    => I'm wondering, where the paramater is set up ? Why would it be empty ? I think this is my case ...

     

     

     

     

  • Suggested answer
    ronaldwalcott Profile Picture
    3,497 on at
    How to GET a SP document full size Thumbnail as an image
    I could be wrong but I think that the thumbnail from running get files is the small thumbnail which would be displayed in a view. It is a pre generated image and there is no large version. The image is stored as part of the metadata.
    The large thumbnail from using http is created on demand I believe.
     
    I don't see a way that you can get what you want without using http.
     
     
    If this answered your question please mark it as answered
  • GREGWOUARE Profile Picture
    39 on at
    How to GET a SP document full size Thumbnail as an image
     Hi Ronald,
     
    here are the problem for each method : 
     
    1- With HTTP action :  💎Premium action which means premium licence for the users which means $$$$ => BIG NO
     
    2- with this blog post SharePoint Online. Document Thumbnail : For any reason, the size of the thumbnail GET from this API is limited at 440x311px, even with "...&resolution=6" => way to small for my use case
     
    3- Mix and match solution 1 & 2 : If I am using the HTTP action URI through Send an HTTP Request to SP as a URI whitout any further configuration, Power Automate is adding my SP Site address as a prefix of my URI, as you can see  :  "source": "https://mytenant.sharepoint.com/sites/T.SFS-0140-SECURITE/https://westeurope1-mediap.svc.ms/transform/thumbnail?provider=spo&inputFormat=pdf
     
    So basically my question is : 
     
    How to GET full size thumbnail of a SP document in .png format, without premium action ?
     
    Thanks
  • ronaldwalcott Profile Picture
    3,497 on at
    How to GET a SP document full size Thumbnail as an image
    Sorry, unsure of what you are asking.
    What is the problem with the first thumbnail that you are getting?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,976 Most Valuable Professional

Leaderboard