In SharePoint you can add a Link to a Document Library. We have setup a When a file is created (properties only) trigger in order to get the URL of the Link when it's added to the library.
However, in Power Automate the actual URL doesn't come through. All we see is the following URL structure. This is not the actual URL of the file which we need.
First of all, I would like to say thank you ๐ for learning from your solution especially complex expression, transformation data etc.
Here is the solution to find actual link from "Link" created in doc library:
Use "Get file" content to get content of link:
Next, add compose action and use expression to decode the base64 value from the content:
decodeBase64(body('Get_file_content')?['$content'])
You will get the actual link in the output of compose action. You need to parse the text to get the link, which I know you are expert in ๐
Output:
If this helps & solves your problem, please remember to give a ๐ and accept my solution as it will help others in the future.
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2