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 Apps / Copy file from Teams u...
Power Apps
Answered

Copy file from Teams url to SharePoint folder

(0) ShareShare
ReportReport
Posted on by 90

Hello 

 

i am trying to create a flow in power apps that gets file url from teams channel and then copy this file to SharePoint Folder.

 

i have a Teams Channel that i upload files

teams.jpg

user gets link by copy link

getlink.jpg

Then i have a SharePoint list with power app that user enters the url in field

sharepoint form.jpg what i am trying to do is to get that file from the URL(Teams) and upload it to share-point folder.

 

Any ideas?

 

thank you

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @andreas_TR 

    Each Team has its own SharePoint site, the files in Team channel are actually saved in Document Library of Sharepoint site.

    Annotation 2020-03-20 110226.pngAnnotation 2020-03-20 110243.png

    If you want to copy this file to SharePoint Folder, please try this:

    1. Use 'Get file content using path' action to get the file content

    2. Use 'Create file' action to save that file to SharePoint folder

    Annotation 2020-03-20 110043.png

    Hope this helps.

    Sik

  • AndreasTR Profile Picture
    90 on at

    thank you @v-siky-msft  for reply

     

    the main problem is that i want to take the url of the file from the SharePoint form that user enter the url

    sharepoint form.jpg

    so in get file content using path is any way to automaticaly get the url from the url field in SharePoint Form ?

    thank you

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @andreas_TR ,

     

    Sorry for my misunderstanding, do you mean you want to get the file link, right?

    I think you use 'Get file metadata using path' action to get the file item ID and use 'Create sharing link for a file or folder' action to get the file link. In the end, add a 'Respond to a PowerApp or flow' action to return the Sharing Link back to PowerApps.

     

    Annotation 2020-03-20 152940.png

    Hope this helps.

    Sik

  • AndreasTR Profile Picture
    90 on at

    @v-siky-msft  thank you for reply

     

    i want to copy the file in another folder from the url(teams url) that user enters when submitting the SharePoint form (url=SharePoint field)

     

     

     

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @andreas_TR ,

     

    To save the file to another SharePoint library, you can try the flow I mentioned in the first post.

    Get the FileContent by path, then create a new file in another SharePoint library.

    Sik

  • AndreasTR Profile Picture
    90 on at

    thank you @v-siky-msft   i ll give it a try

    be safe 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard