Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Create sharing link for a file or folder (Wont work with dynamic data?)

(0) ShareShare
ReportReport
Posted on by 2,563

Hi 

 

Im trying to create a sharing link for a file using the "Create sharing link for a file or folder"

Everything works if i select the Site address and Library Name manually. But if use dynamic content in the Library name it will fail, even if the name is displayed exactly the same.

 

How can i use dynamic content in Library name? If i use the "create file" and use dynamic content in library then no issue, but the "Create sharing link for a file or folder" just dont allow me to use dynamic content in Library Name?

 

With dynamic content in Library name

2019-11-06 16_28_03-Run History _ Power Automate.png

 

Without dynamic content in Library name

2019-11-06 16_27_31-Run History _ Power Automate.png

 

  • Verified answer
    JimmyW Profile Picture
    2,563 on at
    Re: Create sharing link for a file or folder (Wont work with dynamic data?)

    @v-alzhan-msft 

    By getting the list ID you can use this as a dynamic content and make it work.

     

    Send an Http Request:

    _api/web/lists/GetByTitle('Name of the list')?$select=id

  • JimmyW Profile Picture
    2,563 on at
    Re: Create sharing link for a file or folder (Wont work with dynamic data?)

    @v-alzhan-msft Thank you for the answer.

     

    I belive it works with the ListID and not ListName, i will test a bit more later today.

  • v-alzhan-msft Profile Picture
    on at
    Re: Create sharing link for a file or folder (Wont work with dynamic data?)

    Hi @JimmyWork ,

     

    I have made a test on my side and the dynamic content in the Library name in the "Create sharing link for a file or folder" action is not supported in microsoft flow currently, if you would like the dynamic content in the Library name in the "Create sharing link for a file or folder" action to be supported in microsoft flow, please submit an idea to flow ideas fourm:

    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/FlowIdeas

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1