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 / How to create an .URL ...
Power Automate
Answered

How to create an .URL File in SharePoint with PowerAutomate

(1) ShareShare
ReportReport
Posted on by 97
Hi guys,
 
I am trying to create an .URL File (Link File) in SharePoint with Power Automate. What I want to do is getting a folder link in a previous flow step and then create an .URL File in another library to access the folder from step 1. 
 
Has anyone an idea on how to get this done?
 
Thanks in advance.
Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at
    Hi
     
    Not sure I understood your question fully. Say for example if the link is
     
     
     
    If you looking to get the folder link then use the split() expression using delimiter as '/'
     
     
    This will product an array of values
     
     
    If you use last(split('https://mysharepointsite.com/doclib/folder1/ExampleFile.txt', '/')) you will get ExampleFile.txt
     
    If you just the folder name then use the index. 
     
    eg:
     
     
    index will be starting from 0 to n numbers depending on your folder structure.
     
    Thanks
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi
     
    I understand what you are asking for and abm_abm is there 99% of it.
     
    At this point you need to use Create File, pointing it at the other SharePoint Document Library, or if you want it to be an Attachment its a little different.
     
    But using Create File will then allow you to put the link and its necessary formatting inside the file.
     
    Just remember if you use [InternetShortcut] starting line then your URL=the URL you received per abm's message.
     
    Now you have your internet shortcut in the other library pointing back to this one, assuming whomever clicks it will have permission.

    The other part however, is, how do you want this create by what mechanism? Is its manual? is it after something has changed etc? Whats the trigger condition to do this?
  • jleystral Profile Picture
    97 on at
    Hi guys,
     
    Thank you so much for your fast reply. 
     
    Getting the folder path or the url is not a problem. I was wondering how to create a .URL File (hyperlink file) in a library. 
     
    For example I tried this (Action is 'Create file'): 
     
    But this isn't working. Do I need to use HTTP request?
     
    In the end I just need a working link file like this:
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at
    Hi jleystral
     
     
    Not sure who marked this a verified answer.  The file you are trying to create via another link is that exists in another SharePoint library? Let me know. I could provide some answers for that.
     
    Thanks
  • jleystral Profile Picture
    97 on at
    Hi abm abm,
     
    Thanks for your reply. No the .URL File doesn't exist in another library. Otherwise I could just use the "Get file content" and create the new .URL file.
     
    I just have an URL internet adress and need to create a .URL File in a library.
     
    Thanks
  • jleystral Profile Picture
    97 on at
     I did the  [internetshortcut] and it works perfect. Thanks guys

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 780

#2
Valantis Profile Picture

Valantis 668

#3
Haque Profile Picture

Haque 601

Last 30 days Overall leaderboard