web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating SharePoint fi...
Power Automate
Unanswered

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
    68,697 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
    68,697 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard