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 / File system flow to co...
Power Automate
Unanswered

File system flow to copy specific file extension from network folder (system) to Sharepoint folder

(0) ShareShare
ReportReport
Posted on by

Hi all

 

I am trying to create an automated flow to grab a system file (with a specific file extension) and copy it into an existing Sharepoint folder. 

 

I've followed what I consider the appropriate route to create the flow, but it is not working. I need some help to get this to work please.

 

Regards,

 

{
 "inputs": {
 "host": {
 "connectionName": "shared_filesystem_1",
 "operationId": "OnUpdatedFiles",
 "apiId": "/providers/Microsoft.PowerApps/apis/shared_filesystem"
 },
 "parameters": {
 "folderId": "6e202211-2856-4d17-9ded-5beb8b8626b0",
 "maxFileCount": 10,
 "checkBothCreatedAndModifiedDateTime": true
 },
 "authentication": "@parameters('$authentication')"
 },
 "recurrence": {
 "interval": 5,
 "frequency": "Minute"
 },
 "metadata": {
 "6e202211-2856-4d17-9ded-5beb8b8626b0": "/",
 "operationMetadataId": "1c685d6c-26ff-407a-acaa-d0850de9396d"
 },
 "splitOn": "@triggerOutputs()?['body']"
}
{
 "inputs": {
 "host": {
 "connectionName": "shared_filesystem_1",
 "operationId": "GetFileMetadata",
 "apiId": "/providers/Microsoft.PowerApps/apis/shared_filesystem"
 },
 "parameters": {
 "id": "@triggerOutputs()?['body/Id']"
 },
 "authentication": "@parameters('$authentication')"
 },
 "metadata": {
 "operationMetadataId": "2879eb91-92ed-442e-b506-9abcf383f526"
 }
}

 

{
 "inputs": {
 "variables": [
 {
 "name": "SourceFolderPath",
 "type": "array",
 "value": "@split(outputs('Get_file_metadata')?['body/Path'],'/')"
 }
 ]
 },
 "metadata": {
 "operationMetadataId": "4d9e1329-3bfc-47da-adfd-736f6e64b6fc"
 }
}

 

{
 "inputs": {
 "variables": [
 {
 "name": "varSub",
 "type": "string",
 "value": "@{variables('SourceFolderPath')[1]}"
 }
 ]
 },
 "metadata": {
 "operationMetadataId": "6422a75d-9128-492e-8e11-81e1628cc375"
 }
}
{
 "inputs": {
 "host": {
 "connectionName": "shared_sharepointonline",
 "operationId": "CreateFile",
 "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
 },
 "parameters": {
 "dataset": "https://angloamerican.sharepoint.com/sites/KumbaGeologyDroneSurveys",
 "folderPath": "/Shared Documents/General/Kolomela Stockpile surveys",
 "name": "@outputs('Get_file_metadata')?['body/Id']",
 "body": "@outputs('Get_file_metadata')?['body/Name']"
 },
 "authentication": "@parameters('$authentication')"
 },
 "runtimeConfiguration": {
 "contentTransfer": {
 "transferMode": "Chunked"
 }
 },
 "metadata": {
 "operationMetadataId": "83dc0a5d-8071-46cd-b0b9-95e95007554f"
 }
}

Hein

 

 

 

Categories:

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard