Hi,
I have a number of flows that are used by the business to produce an automated newsletter from News Articles published to our shared SharePoint. The flow would read through the Site Pages for all files with a PromotedState 2 (News articles) that have been created or updated in the last 31 days. It would then take the banner image URL from these pages to be used in the email the flow created.
Because the banner images were too large to be included in the email (we use Outlook App not Outlook Web so had to Base64 these images), smaller copies were stored in a Thumbnail folder. Previously sharepoint would show the URL for these banners as follows:
https://XXXX.sharepoint.com/_layouts/15/getpreview.ashx?path=%2Fteams%2FSharePointSite%2FSiteAssets%2FSitePages%2Fimage.jpeg
I would then split this to get the path, inject the Thumbnails folder to the path and then use this to Get File Properties to then use to convert Base64. This worked fine until Tuesday morning, when any new pages that we create (using the exact same method as previously), started to return the following URL format:
https://XXXX.sharepoint.com/_layouts/15/getpreview.ashx?guidSite=f117e11e88134eba8ef0d9c44473051e&guidWeb=9d04ddf688694ff59f2ce77181a99db6&guidFile=04cb06868adc4a1791644a7c2b843430&ext=jpeg
Obviously from this I can not split this down and get the required path. The annoying part is, one of the previous news articles that are showing the right URL format was duplicated with a new name and this copied one shows the second URL format so it is definitely something to do with SharePoint and the way it communicates with Power Automate.
Is there a way to get the original URL format, or is there a way to use the second URL to get the actual path so I can split it and add the required part to point to the Thumbnails?
Thank you,
Paul.

Report
All responses (
Answers (