Hi @Djarano
Here is a POC I built for you:
My sample form
This is a sample form that I have created, to simulate what you described
My Flows Overview of all the actions - As normal you will want to use When a new response is submitted followed by a Get response details .
Flow Overview
Step 1 - Use a Create file action
Folder Path - Use the Folder Icon to navigate to the Share Folder Customer.
Add the rest of the path manually. (This will create the folder structure for you if the path does not exist already)
File Name - Whatever you want the answers to be in
File Content - The answers from the Form (Not the attachments)
Step 1
Step 2 - Add a Parse JSON action
Content - Use the dynamic content for the Attachment question in the Form
Schema - {I Have pasted the Schema that you can use at the end of the steps}
Add a Apply to each loop
Output from previous step - Use the dynamic content from the Parse JSON
Step 2
Step 3 - Add a Get file content action
File - Use the id from the parse JSON dynamic content
Step 3
Step 4 - Add a Create file action
Folder Path - Do the same as Step 1, this time the flow will not create the folder structure because it already exists, we just want to add the Attachments here. NOTE: make sure the Folder Path is the EXACT same as Step 1
File Name - use name from Parse JSON dynamic content
File Content - use the File content from Get file content dynamic content
Step 4
The Results is:
Final Output
Here is the Schema to use for Parse JSON action:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
If you have any questions let me know.
—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others