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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to GET a SP docume...
Power Automate
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
 
 
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Sorry, unsure of what you are asking.
    What is the problem with the first thumbnail that you are getting?
  • GREGWOUARE Profile Picture
    39 on at
     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
  • Suggested answer
    ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    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
     
     
    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 ...

     

     

     

     

  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard