How can I save a thumbnail generated for a document in a SharePoint library to another library in SharePoint? I'm stuck on converting the automatically generated thumbnail into a file (e.g. jpg).
I've tried using the URL (i.e. _layouts/15/getpreview.ashx?path=) but I'm not sure how to extract the content from what is generated at that URL. I've also tried variations on @{binary(outputs('Get_file_properties')?['body/{Thumbnail}/Large'])}.
My original flow uses a workaround where I copy from SharePoint to OneDrive because there is a simple Get File Thumbnail action for OneDrive in Power Automate, but that is problematic with other users.
Thanks in advance 🙂
Worked perfectly fine! Thanks!!!
Can I ask you one thing? I followed your demo and it works only when there is no image in my powerpoint file.
When there is an inserted image file, the create file at the end is that image file, not the preview image of the powerpoint page. Do you know why it's happening?
Seems that mp4 files thumbnails are no longer supported. I have open a ticket to Microsoft and they asked me for a recent screenshot of any site showing the mp4 extension available within supportedtypes action... Kinda stupid thing!
Oh, mp4 is not included on supported types for my tenant. I will ask IT to include this.
Thank you so much for your support!
So it won't work for video files? Any way to get a video file thumbnail?
I just need to insert the video thumbnail into an email body. It does works with this:
<img src=@{triggerOutputs()?['body/{Thumbnail}/Medium']}>
But the issue is that this will work for some time, if you open the mail a few hours, the image won't be shown. I gues it's because the Thumbnail value uses temporary token.
The path is not full.
Hi, just trying this, but getting back a 501 Bad Gateway error in my flow.
This is how my http request looks like:
Hi @v-xiaochen-msft. Perfect. You made that look easy 🙂 I appreciate you taking the time to help out!