The Ultimate Power Automate Flow to work with Microsoft Forms Attachments and File Uploads

  Рет қаралды 1,437

Paul Murana

Paul Murana

Күн бұрын

In this video, we revisit the topic of handling attachments in Microsoft Forms, presenting an advanced and more efficient solution using Power Automate. The video addresses a specific challenge posed by a viewer dealing with a form containing 27 file upload fields.
The solution showcased bypasses the complexities of managing numerous attachments by dynamically selecting and processing all attachments into a single array. This approach simplifies the handling of stringified JSON data and is adaptable regardless of the number of upload fields in the form.
The video walks through each stage of the process, including preparing the JSON output, converting it to XML, and then using XPath queries to identify and extract only the attachment data. It then demonstrates how to compile all attachment data into a single JSON array, which can be easily used for various purposes like uploading to a SharePoint list or document library, attaching to emails, and more.
If you feel like this process should be easier - I agree! Check out Power Tools for Power Automate which can extract Microsoft Forms attachments in a single action:
tachytelic.net...
If you found this video useful please consider buying me a coffee:
www.buymeacoff...

Пікірлер: 25
@PaulieM
@PaulieM Ай бұрын
Check out Power Tools for Power Automate which can extract all of the for attachments in a single action! tachytelic.net/power-automate-power-tools/
@elliskarim
@elliskarim 8 ай бұрын
Thanks for sharing this tutorial. I had previously solved this problem by using an array to store all of the file upload questions, and then iterating through each question in the array to get file contents. I really like your approach as it dynamically selects the file upload fields directly from the forms response. Like you, I haven't quite warmed up to the new editor yet. Here's a handy tip: You can use negative numbers in the slice function to trim the string at both ends: slice('0123456789', 1, -1) should return 12345678 .
@PaulieM
@PaulieM 8 ай бұрын
That is a tasty tip! Thank you!
@PaulieM
@PaulieM 8 ай бұрын
For anyone that follows the video, the simplified expression you would use in the select action would be: *slice(item(), 1, -1)*
@robofski
@robofski 8 ай бұрын
Next level stuff!! And I love that your videos are ‘warts and all’ You don’t try to make yourself look perfect, you miss a comma, flow fails and you fix it, and we all learn something!!!
@PaulieM
@PaulieM 8 ай бұрын
Yep! I could have edited the mistakes out but they didn’t take up too much time so thought best to leave them in! Glad you liked the video, it’s a neat solution in my opinion!
@enowack
@enowack 5 ай бұрын
This is perfect. The one thing I need to do is use a Team SP Library instead of my personal business one drive. How would we do that?
@tisjulesitis
@tisjulesitis 4 ай бұрын
I have the same challenge. Let me know if you find out anything
@nguyenmanhtuan1772
@nguyenmanhtuan1772 8 ай бұрын
Thank you very much for another great video 🥰
@PaulieM
@PaulieM 8 ай бұрын
You are so welcome!
@Pyr0t3ch
@Pyr0t3ch 12 күн бұрын
Hi. Great to see that there is a way to get attachments from forms into sharepoint. However, while following your guide, when I test the flow to see the json from "AllAttachments", it does not output all the details we can see in you video. I only get the same output as input. The expression is: json(concat('[', join(body('Select'), ','), ']')) I can't see that I have missed anything. Has anything changed to powerautomate in the last months? NB: I am using only one attachment if that has anything to do with it?
@rajaamohammed6965
@rajaamohammed6965 8 ай бұрын
Great content and excellent video!
@PaulieM
@PaulieM 8 ай бұрын
Glad it was helpful to you.
@laurazygo9642
@laurazygo9642 5 ай бұрын
I am a complete novice when it comes to Power Automate but I have followed your guide and it has helped me enormously. I have the flow working but when I try to send an email it is failing because of the types of attachments I am trying to add. In addition to following your steps I have also converted the Microsoft form into HTML and then PDF so when it comes to the email attachments I am trying to add your instructions (as an array) and then the PDF details not as an array and it doesn't like it. I have screen shots if that would be helpful.
@PaulieM
@PaulieM 5 ай бұрын
You could combine the PDF into your first array using the “Append to array” action.
@alexsbuck5531
@alexsbuck5531 6 ай бұрын
Awesome, thanks for sharing! One question though: - what alternative can be used to upload attachments? I want to share the Form with external partners hence not possible for them to upload attachments ?
@PaulieM
@PaulieM 6 ай бұрын
Check out this video.. kzbin.info/www/bejne/mWXEfXiAlrSFj9Esi=woqKX0Ei1oJdK12y
@rogehrify
@rogehrify 2 ай бұрын
Is it possible to apply this method when submitting files to planner?
@gatafish
@gatafish 18 күн бұрын
I keep getting the error "The resource could not be found." for "Get File Content" in the EachFormAttachment Loop. Any help would be appreciated.
@gatafish
@gatafish 16 күн бұрын
The form had been added to a Team, so I had to get the files from the temp folder under the Team site and not my OneDrive. It is spot on now. THANK YOU!!!
@PaulieM
@PaulieM 12 күн бұрын
Well done for sorting it!
@stanlygomes1236
@stanlygomes1236 2 ай бұрын
Hey Paul! This video helped me push past a barrier I was having with PowerAutomate for a similar flow case as presented here. I’m having an issue with sending the attachments to a Jira ticket. I’m able to upload the attachments with this (as long as I use a covertBase64toBinary for “content” field), but when I try to open the attachment on Jira it is corrupted. Would you be able to help me with this?
@PaulieM
@PaulieM 2 ай бұрын
I would have thought you should send the attachments to Jira in Base64 format. Are they part of a JSON payload?
@stanlygomes1236
@stanlygomes1236 2 ай бұрын
@@PaulieM yes they are part of the JSON payload for an HTTP POST request. When I tried using the Base64 content, the HTTP response would be that it didn’t add any attachments.
@stanlygomes1236
@stanlygomes1236 2 ай бұрын
@PaulieM sorry for the confusion, it worked when I switched back to Base64!
Unlock the Full Potential of Parse JSON in Power Automate
19:47
Paul Murana
Рет қаралды 2,5 М.
Whoa
01:00
Justin Flom
Рет қаралды 55 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 30 МЛН
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
How to Get Microsoft Form File Uploads Attached to an Email 📧
29:50
A Creative Opinion
Рет қаралды 7 М.
Processing a JSON file being received by email with Power Automate
9:23
Power Automate Tutorial - Microsoft Forms Multiple Attachments
16:34
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33
Power Automate - JSON Object and XPath
18:11
abm abm
Рет қаралды 4,4 М.