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 / Creating SharePoint fi...
Power Automate
Answered

Creating SharePoint file sharing link using PowerApps and Power Automate

(0) ShareShare
ReportReport
Posted on by 362

I am trying to get a file sharing link via PowerApps + Power Automate. The flow I've built (see below) fails, giving me a "Scope is not valid" error for the Create Sharing Link action. Up to that point, everything else works. What am I doing wrong?

 

Quick flow explanation:

 

- Choose a file from library using PowerApps 

- Choose recipients of sharing link via PowerApps

- Get Files (properties only) for all files in library

- Filter output Get Files (properties only) where File name with Extension is the same as selected in PowerApps

- Create sharing link for the selected file

 

Thank you!

 

Gilmour_0-1660513446148.png

 

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,387 Most Valuable Professional on at

    What formula are you using for the Item ID?  The filter array will return a collection even if there is only one item, so you need to use first() to get the first record.

     

    Also, there is no action for creating a sharing link for specific people.  The scope is either people in my organization or anyone with the link. I'm not aware of any action or REST call that lets you create a link for specific people like the user interface in SharePoint does.

  • Gilmour Profile Picture
    362 on at

    Hi @Pstork1 , you hit the nail on the head: in further auditing the flow, I realized that the creation of the link was not the issue, but scope of the link, as you rightly suspected.

     

    I suppose I'll have to figure out a way to include external users (with the appropriate levels of access and security for my information) in some group, then share the link with them. I'd like to avoid the "Anyone with the link" option. Any further thoughts are much appreciated.

     

    Thank you!

  • Verified answer
    Pstork1 Profile Picture
    69,387 Most Valuable Professional on at

    The problem is that action only allows creation of an anonymous link or one that is limited to Internal users only.  So there is no way to use that action to share the file with external users without using the Anyone with the link scope.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 822

#3
Haque Profile Picture

Haque 482

Last 30 days Overall leaderboard