Hi, I'm trying to figure out how to use logic apps to move files in Azure File Storage from one location to another location. For example,
I created source Azure file share /test/nav and uploaded 3 text files in there
also created destination Azure file share /test/westpac
My goal is to move those 3 text files from /test/nav to /test/westpac, below is some screenshots from my logic apps designer. Also i pasted my workflow json file.
My problem is i didn't receive any file in destination folder. Can anyone point me to right direction ?
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"List_files": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"referenceName": "azurefile"
}
},
"method": "get",
"path": "/datasets/default/foldersV2/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZm5hdg=='))}",
"queries": {
"nextPageMarker": "",
"useFlatListing": false
}
},
"runAfter": {},
"metadata": {
"JTJmdGVzdCUyZm5hdg==": "/test/nav"
}
},
"For_each": {
"type": "Foreach",
"foreach": "@Tomas Podoba ('List_files')?['value']",
"actions": {
"Copy_file": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"referenceName": "azurefile"
}
},
"method": "post",
"headers": {
"ReadFileMetadataFromServer": true
},
"path": "/datasets/default/copyFile",
"queries": {
"source": "@items('For_each')?['Path']",
"destination": "/test/westpac/@{items('For_each')?['Name']}",
"overwrite": true,
"queryParametersSingleEncoded": true
}
},
"runAfter": {}
}
},
"runAfter": {
"List_files": [
"Succeeded"
]
}
}
},
"triggers": {
"Recurrence": {
"type": "Recurrence",
"recurrence": {
"frequency": "Second",
"interval": 10
}
}
},
"contentVersion": "1.0.0.0",
"outputs": {}
},
"kind": "Stateful"
}