Hello everyone! I really hope someone can help me out here as I have scratched my head quite a lot with this problem.
Anyways as the subject already described we would like to have a flow which will automate the process of getting Form responses with attachments to Sharepoint List.
I followed this tutorial, but there is slight difference which generates the issue - we have O365 Group Form not user form, which means that Form responses are saved to Sharepoint not OneDrive for Business: https://www.youtube.com/watch?v=Foy8i6jPZrg
Our current configuration looks like this:
This part is understandable. JSON is parsed also correctly:
Now we create Sharepoint List Item:
But now comes the part which gives me headache. Everythings seems to be okey and logical. We want to get with "Get file content" from the parsed ID with JSON of the file in Sharepoint. After that we want that file to be attached to Sharepoint List Item as attachment:
This is the from I submit:
But it doesnt work unfortunately. Sharepoint List Item is created, but there are no attachments:
And if we look at the Flow Run it says failed:
And it says that File Not Found:
When I put there OneDrive for Business as in the video I get this kind of error, which is understandable as these files aren't located there.
Solved! Go to Solution.
Hi @martlehtmets ,
You can get the file contents according to the File path, and manually enter the File path.
/Shared Documents/Apps/Microsoft Forms/GroupFormName/QuestionName/@{items('Apply_to_each')['name']}
Image reference:
Best Regards,
Hi @martlehtmets ,
You can get the file contents according to the File path, and manually enter the File path.
/Shared Documents/Apps/Microsoft Forms/GroupFormName/QuestionName/@{items('Apply_to_each')['name']}
Image reference:
Best Regards,
Wow...that's the thing when you struggle with something. IMHO I tried this option also, but probably did something still wrong. IT WORKS NOW!!! Thanks a ton @v-bacao-msft !
@v-bacao-msft is there a way to show multiple attachments from the Group forms to one single Sharepoint list item?
I'm still unable to add attachments following the above solution; any guidance on possible causes would be appreciated.
Dummy file location saved from a group form.
dummy file location of the uploaded attachment
JSON node gets the correct file name, and the link does lead to the right file.
Parsing as expected - name of dummy file seems correct
Get file content follows the same process folder path but I still get the below error
input to the get file connector
Any ideas welcome.
Thanks.
I tried as @v-bacao-msft wrote, all looks ok but when I check list and attachment, name and extension is there but when I click on attachments file is not readable....XLS or PDF the same problem...
I managed to do it as shown above but a problem occurred to me, when there is no error attachment so how do I create a condition if there is an attachment do the process if I didn't continue? I tried that way but as I check that the "anexo" field form has an attachment?
Have you figured this out? Flow returns error when there is no attachment BUT still moves all other fields to list.
yes, i solved it by placing a condition in a form, where i ask if he wants to insert an attachment and if the answer is yes then open the field to insert and put this condition in my flow
The below article tackles multiple attachments and to check if they are present or not.
Working with Files on MS Forms in MS Power Automate (bythedevs.com)
User | Count |
---|---|
85 | |
38 | |
23 | |
20 | |
16 |
User | Count |
---|---|
127 | |
48 | |
46 | |
27 | |
25 |