Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.
  • jleystral Profile Picture
    97 on at
    How to create an .URL File in SharePoint with PowerAutomate
     I did the  [internetshortcut] and it works perfect. Thanks guys
  • jleystral Profile Picture
    97 on at
    How to create an .URL File in SharePoint with PowerAutomate
    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
  • abm abm Profile Picture
    32,488 Most Valuable Professional on at
    How to create an .URL File in SharePoint with PowerAutomate
    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
    How to create an .URL File in SharePoint with PowerAutomate
    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:
  • Verified answer
    Michael E. Gernaey Profile Picture
    43,442 Super User 2025 Season 1 on at
    How to create an .URL File in SharePoint with PowerAutomate
    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?
  • Verified answer
    abm abm Profile Picture
    32,488 Most Valuable Professional on at
    How to create an .URL File in SharePoint with PowerAutomate
    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

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492