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 Automate / Sudden change in getti...
Power Automate
Unanswered

Sudden change in getting URLs from Sharepoint

(0) ShareShare
ReportReport
Posted on by 25

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.

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard