Important Note: The demo I show is of a Personal Form in Microsoft Forms, which is why the data is stored in OneDrive for Business. We also have the ability to create Group Forms in Microsoft Forms. This means, instead of the form and attachments being tied to the person who created it, it is associate with a Group and the attachments then are stored in the SharePoint Document library of the group. So if that's how you create your form you might not need this process. If you need to move the attachment to a different SharePoint library the only change is to use the "Get File" SharePoint Action instead of the "Get File" OneDrive action. Everything else is the same.
Actually, the "Get File" SharePoint action doesn't work to move those files attached to Group Forms because the "id" of the file that's provided in the JSON from the response details isn't the same as the "id" needed by the Get File action. You actually need to use the OneDrive actions to "Get file metadata" of the attachment, feeding it the "driveId" and "id" (concatenating them with a . in between) from the JSON, then user the Id output of that action with the OneDrive "Get file content" and THEN the SharePoint "Create file" action. It's a pain, but does work.
Holy crap!!! This is exactly what I have been trying to accomplish for weeks!! I was even told by a so-called 'expert' that due to limitations in Power Automate, it was not possible to retrieve file names of attachments if there was more than one. I have spent all day trying to come up with a believable sob story as to why I could not fulfill this requirement, but thanks to you, I can save the day, and make myself appear 100 times more capable than I really am. I'm going to take full credit for figuring it out myself, but I'll always know that it was all you! 😉Thank you! thank you! thank you! This was HUGE for me.😃
I had a workflow before, much more complex with a Array function, i made it again following this tutorial, worked perfectly, congrats for the video, clear, straight to the point!!!!
Thank you April. This video was fantastic. I did try to replace the expressions with the name for the Parse Json as you described for uploading more than one file, although I had an issue whereby the attachments would not open. I realised that I had an 'apply to each' for both the get file content and add attachment. It is worth noting in case others have this issue, the get file content and add attachment needs to be wrapped in the same apply to each.
This is more complicated than it looks and I still can't get it to work. April, it would be a great video to walk us through the whole thing with multiple attachments. It's not obvious for non-developers...
THANK YOU SOOOOO MUCH April! This helps me a lotttt!! I have tried so many ways from other bloggers and youdubers and all failed because they are not as detailed! I love all the content you have posted! YOU ARE THE BEST!! THANK YOU SO MUCH!!
This is so amazing. I love how clear an step-by-step you have provided this information. I have been struggling and you have my perfect answer. I can't thank you enough!!
This was extremely helpful and just what I was looking for. Thanks for your clear explanation and detail. This actually helped me learn a couple of other things as well that I’d been wondering about!
I can't tell you how often I come back to this great video for instruction. Thank you SO much April. Any chance of you making a video if there are TWO attachments within the same form that you need in the same SharePoint list?
Thank you for your video, April. It is well done, very helpful and your expertise is apparent. I am trying to create a master folder in Sharepoint with a tracking document for a training program to drop certificates of completed programs in to. This is for a volunteer organization I am a part of. My challenge is that there are multiple questions each with a required certificate.
April, amazing video. Thank you so much! One thing I figured out - and I know this was at the very end when you were trying to finish up so there was not a lot of time spent on it: You show two "Apply to each" boxes when grabbing multiple files, but I could only get it to work when I had ONE "Apply to each" action with both the "Get file Content using path" & the "Add attachment" in the same "Apply to each" action 'box.' Thanks again!!
@@AprilDunnam my flow is being funky. Uploading a file is not mandatory and there will be instances where a file will not be present. Do I have to do a yes/no condition?
April, Thank you for the how-to. I follow your guide as exactly as I can tell however, I am running into a problem. When there is no attachment the flow fails.
Fun fact: You can also adjust the playback speed of a video by clicking the settings gear in the video. Maybe you can try that next time if the FREE content you're watching isn't at your preferred pace. Could prevent you from having to leave passive aggressive comments on other videos :)
April I need help, I used This flow and everything is fine but when I add Multiple photos in the form, it goes to the share point but when I try to open from The share point attachment area the image won’t display after it opens. But if I only upload one image it opens fine.
Hey, I have this same issue. Flow works perfect for just one attachment but for more than one attachment is a problem. If you found a solution to this, please let me know.
Thanks April as this worked great if the form has an attachment. However, my flow failed when I submitted a response without one. Is there a way to avoid this?
Great video and good explanation about JSON. But an easier way to grab the file is instead of using "Get file content using path" is to use "Get file content" and use "id" from Parse JSON. And you already have the "name" in Parse JSON. No need for an expression when you Add attachement.
Joakim, thanks sooooo much for posting this. In my environment I could NOT get the get file content using path method to work but your proposed change fixed it right up for me and it's working now. you rock!
for anyone who has issue finding "file content" , this is the best approach. when using "Get file content" , don't put the path (you will have issues otherwise), just use JSON id alone; first(body('Parse_JSON'))?['id'] and then when adding attachment , as Joakim mentioned, you just need to add "name" as it will be available in the dynamic content list under "Parse JSON"
What parameters do you have to have in the List in order for Excel files to be extracted from a form? I am really struggling to make this work. I will try your tip and check if it would work.
Hi April this is great. Can we create the attachment not in 'attachment' column, but in a custom column of sharepoint list? Lets say i have 'Employee ID Card' img column i create. I want the form submission attachment to be stored on that column.
Hi April, thank you so much for this video it has been great to be able to get my attachments over to MS Lists. I now have an issue with the error below which appears when users do not add an attachment. Could you help. Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'.
I'm having the same issue - some MS forms without attachments (not required). Tried adding in "anyOf" however this issues a 'Enter a valid json' error message. @April Dunnam - if you happen to have a solution for this it would be a great addition to a very instructive video. Anita - If you've happened to solve for this, would be grateful to get how you approached this.
I have my flow set up just like your vid, but get an error 'Get file content using path' failed - The resource could not be found. The attachment is in the proper SharePoint folder. On the inputs of Get file content using path action, the file path = /Apps/Microsoft Forms/file name test.docx What am I missing? Any hints would be gladly taken!
Hi April, thanks for this very informative video. I have a form which has TWO fields for adding attachments (the first is to add an XLS expense claim form, the second is to add the receipts saved as a PDF doc). I've followed your video but created two separate flows (Parse JSON, Get file contents using path and Add attachment). For both i've used the "first(body('Parse_JSON'))?['name'] expression" as each of these two fields only allows the uploading of 1 attachment each. The files are correctly saved in their respective folders on OneDrive (Question and Question 2). Question's file format is XXXX.XLS (e.g. Expenses_BOB.xls), Question 2 file format is XXXX.PDF (e.g. Receipts_BOB.pdf) The problem i am having is the second one is failing (at Get file contents using path). The raw input is: "host": { "connectionReferenceName": "shared_onedriveforbusiness", "operationId": "GetFileContentByPath" }, "parameters": { "path": "/Apps/Microsoft Forms/Expense Claim Form/Question 2/Expenses_BOB.xls", "inferContentType": true It is failing with a 404 Status, The resource could not be found. Looking at the path in the second "Get file contents using path" it is referencing the file from the first "Get file contents using path" (Expenses_BOB.xls instead of Receipts_BOB.pdf) How do I address that? Many thanks in advance, Graeme
The video was very helpfull to me. As you mentioned if the attachment is more than 1 we should not use first(body) expression, so what would be expression for 3 attachment or >3
Hi April, I use this video all the time for my Flows that have attachments - do you perhaps have an adjustment for when there is not attachment as sometimes we do no have a document required as evidence for the Flow. Warm regards
Hi April, thank you so much for this video. Question- how did you create the expression to include the parse json? I keep getting an error message that.
Is there a step that can be shared for how you would do automatic maintenance on the original location of the documents uploaded. In your example you're taking from the original one drive location and copying them to the list. Works so well! But we still have a lot of files that will just sit in the original location. Thinking it would be a good idea to keep that trimmed down since already found in the list.
Hi, this is super helpful. Quick question: My flow works great when I upload a file to my form, but it fails at the Parse JSON step if there was no file uploaded. Is there a way to edit the parse JSON step so that it skips if there is no form file upload? Thanks!
Great instruction, really nice and clear. However I think I followed it to a T but it returned an error: Action 'Parse_JSON' failed, with error details stating: The 'content' property of actions of type 'ParseJson' must be valid JSON. The provided value cannot be parsed: 'Unexpected character encountered while parsing value:
Hi April, I setup the flow and it worked fine, however after going live some users didn't attach any files on the form. Then flow failed to run for the requests which do have attachments. Could you please provide a solution to it. I have already searched for the solution on the flow community but am unable to get to the solution
Hi! I have the same issue (this is how I find this video - trying to find solution). This is good when attachment is required. Doesn't work if it's voluntary.
This was really helpful! I am having trouble trying to get the attachment to pop up using a group form and Sharepoint Library. Any ideas on what I should place in the file content area?
Hi April, Thanks so much for this training material! It's so clear to follow with your explaination. But I have a question here when I have one question in Form to ask user to upload attachments, while ppl can upload photos or videos. And I have created the flow per what you have mentioned in the video, but I could only open the photos in SharePoint when the user upload both photo and video in the same Form. And I can open the video when the user only upload video in that Form. If there is anything I have to edit in the flow in order to solve this issue? Thanks so much!
Wow thank you so much April. Such a helpful video. I am wondering if you can help me. I have gone through the steps & I am struggling with the Parse JSON section. It says my schema is invalid. When copying the field in my Run History. All of my answers are situated in ''Body'' and are not individual like seen in your video. Does this make a difference to my flow going forward?
Hi, thank you so much for this video. Makes it so easy to create. So I want to make an approval work flow where when the approval prompt comes up, the approver will be able to see the attachment. will this process be able to make this happen? Thank you.
Yes you can do that. Just need to tweak it slightly following this documentation which shows how to send an attachment in an approval request: docs.microsoft.com/en-us/power-automate/approval-attachments#:~:text=Create%20approval%20flows%20with%20attachments%201%20Create%20the,requests%20in%20the%20approvals%20center%20as%20well.%20
@@AprilDunnam Hi, Thank you for the other time. Okay, so I created a form in a group and connected it to a flow but my issue is that I am unable to use the method in this video to connect the One Drive of that group to the flow. Is there any way you can help with that???
Hi April, this was an incredibly informative video. One issue that that I am facing is that I cannot open the documents in both the library and list. I’m unsure what the issue is but locally I can open the documents but not through share point. Do you know how to fix this?
Hello April, Thank you for clearly explained the steps.I do have a form with attachment that i am looking to collect the data in List, but when i create the item and plugged the site address, the list name cannot be found.I uploaded the files to One drive and can see the file in the Team folder that i created.What do you suggest me to do in that case ? Thank you.
Hi That is really nice useful One quick question can we control by file size and type e. g. If same emails logic have different type and size of files and we need only files size over 4 KB and type as HTML. Can we config as addition to same scenario of yours
thank you so much I have been trying this for my automation for almost 2 days. it isn't working. With your guidance, I can successfully automate for the first time.
Thank you very much. Great video, helping a lot. Do you know if we can use the same structure, but, change the uploaded file name with the answers from the MS Forms?
Great video! It's very close to what I've been searching for. What would need to be added to this process to have the MS Form attachments (for a group form) be added to a document library according to the characters contained in the file attachment name? Example, files that contain the word "blue" are placed in the document library folder titled "Blue." Really hope you're able to help with this. Thanks!
HI April, 1st, thank you for making these instructional videos. Very good! I'm having an issue with my file upload. I'd like it to show up in the list, but everytime I try to copy the JSON code and place it in the parse sample box it says there are errors. I've tried viewing and following different videos and same issue appears. Any suggestions or thoughts?
Hi April, this worked for attaching my first attachment. Although I followed the same exact steps again for my 2nd attachment and am getting the error that the file does not exist. Is it a different expression to be used for the 2nd attachment?
sadly this hasn't worked for me, i'm unsure if its a restriction by my company or something i'm doing wrong, i followed your video entirely but it keeps failing at the get file path using onedrive content i get the following error on the output log { "status": 404, "message": "The resource could not be found.", "source": "api.connectorp.svc.ms" } am lost as to how to get this sorted. :(
@April: Hi, my Flow run failed (on the Step: Parse JSON) !!! Error Details: Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'. Any Ideas why i got this massage?
thank you very much for your video! I have a question. I have a form where the user can upload 1 attachment or 3 attachments. Unfortunately the flow does not work in this case, I have this error: "The execution of the 'Apply_to_all' action of the model failed. The result of evaluating the expression 'foreach' '@outputs (' compose_output_ buffer ')' is of type 'Null'. The result must be a valid array". How can I do? thank you
Great video . I’ve an issue when using Name from JSON . In the SharePoint when i access the document which is attached to the list item is corrupted . Any advise how to fix this ?
Hello April, I would like to ask for your help because I have a form where attachment is not a mandatory field. How should I change the process in order to save the other data to my list? Thanks in advance
Thank you for your video, really helped! If I'd like to take this one step further and have the image that was uploaded from forms show in an approval before I add it to SharePoint (if approved), how would you go towards accomplish this? Thanks again.
So I did this to a T and it works however, it's doubling my list item entry. For every entry I'm getting two line items in my list and only one carries the value. I don't know what is going on.... So annoyed I can't figure this out on my own. I tried powerapps custom form but wouldn't work and now i'm stuck with forms for users to enter a entry into a list. Annoyed, love SharePoint etc but I'm used to MS ACCESS where things were simpler. :/
OMG! I'm so stupid, as I finished writing this, I realized I have two demo flows - one from another video trying to explain this and yours! I'm dumb! Disregard my frustration, I just deleted the other flow hahahaha. Little to no sleep here. What a dodo.
I have everything working up to the "Get File Content" section where it grabs the file name. Even though the file exists, it keeps advising that the fild id is not valid. Any thoughts?
This is really helpful, the only thing I have noticed is that when the image is saving into a folder it is then creating a new folder of the image name which is empty. What would be causing this?
What if the uploaded multiple photos has the same file name then that returns an error? How do we still capture the uploaded photos and yet rename tham before adding them as attachments?
Hi April, I have been using this video for some really important Flows in our business but in the past few days I have received an error when trying to open the document in the Sharepoint List. I have followed your steps implicitly and it works if there is one document but when I try multiple documents I cannot open the document - any idea what could be wrong?
Thank you. I’m having issues in pasting the code in json expression. Is there a reason for it? It doesn’t let me paste the code. Just comes up an empty cell.
Hi April, thank you for the super useful video. Could you let me know how I can move these attachments to a SharePoint folder? I can't seem to add the folder location in the "Create Item" step on Automate
Hi April, Thank you for the video but I can't do it with a Sharepoint library. I have 2 possible choices: - Toggle the attachment - Add in my MS List the URL that leads to the document library. Can you help me to find a solution? I am completely blocked. Great video anyway. Thanks
This is a great video, what is the full schema? When I followed the steps this was in my schema "type": {} and "uploadSessionUrl": {} and is sending an error code. Any suggestions on how to fix this issue?
Hi April, great video, thank you. Do you have any idea how to get round the fact that Microsoft Forms automatically adds '_anonymous' or the submitter's name to the end of the filename when uploaded? It's driving me insane!!!!! :)
In the Get file content step, I get an error, "Action 'Get_file_content' failed" and "The file id '/Apps/Microsoft Forms/My Folder/filename' is not valid." then the flow does not move to Add Attachment, however, the file is saved to my onedrive correctly. Any ideas?
Important Note: The demo I show is of a Personal Form in Microsoft Forms, which is why the data is stored in OneDrive for Business. We also have the ability to create Group Forms in Microsoft Forms. This means, instead of the form and attachments being tied to the person who created it, it is associate with a Group and the attachments then are stored in the SharePoint Document library of the group. So if that's how you create your form you might not need this process. If you need to move the attachment to a different SharePoint library the only change is to use the "Get File" SharePoint Action instead of the "Get File" OneDrive action. Everything else is the same.
Actually, the "Get File" SharePoint action doesn't work to move those files attached to Group Forms because the "id" of the file that's provided in the JSON from the response details isn't the same as the "id" needed by the Get File action. You actually need to use the OneDrive actions to "Get file metadata" of the attachment, feeding it the "driveId" and "id" (concatenating them with a . in between) from the JSON, then user the Id output of that action with the OneDrive "Get file content" and THEN the SharePoint "Create file" action. It's a pain, but does work.
Thanks so much. Worked for me, however how do I get the 'attachments' field to show first in the columns of the list? Many thanks.
@@cvkealey thank you!!
@@vlakdrak4774 see support.microsoft.com/en-us/office/change-the-column-order-in-a-list-or-library-6f14f5a4-1df4-48a8-a57b-dc1b8f8d03d2
Please do a video on this - lost me
Holy crap!!! This is exactly what I have been trying to accomplish for weeks!! I was even told by a so-called 'expert' that due to limitations in Power Automate, it was not possible to retrieve file names of attachments if there was more than one. I have spent all day trying to come up with a believable sob story as to why I could not fulfill this requirement, but thanks to you, I can save the day, and make myself appear 100 times more capable than I really am. I'm going to take full credit for figuring it out myself, but I'll always know that it was all you! 😉Thank you! thank you! thank you! This was HUGE for me.😃
Well I'm glad that I could help!! 😀
I had a workflow before, much more complex with a Array function, i made it again following this tutorial, worked perfectly, congrats for the video, clear, straight to the point!!!!
Thank you April. This video was fantastic. I did try to replace the expressions with the name for the Parse Json as you described for uploading more than one file, although I had an issue whereby the attachments would not open. I realised that I had an 'apply to each' for both the get file content and add attachment. It is worth noting in case others have this issue, the get file content and add attachment needs to be wrapped in the same apply to each.
This is more complicated than it looks and I still can't get it to work. April, it would be a great video to walk us through the whole thing with multiple attachments. It's not obvious for non-developers...
THANK YOU SOOOOO MUCH April! This helps me a lotttt!! I have tried so many ways from other bloggers and youdubers and all failed because they are not as detailed! I love all the content you have posted! YOU ARE THE BEST!! THANK YOU SO MUCH!!
Thank you, you saved me from a nervous breakdown. Finally a clear flow to save Forms attachments.
Glad I could help!
I'd happily pay you hundreds of dollars for the information you just shared! Thanks!
Thank you I appreciate that!
@@AprilDunnam do you have a link to the video you referenced at the beginning? Moving forms data to a list?
This has been SO helpful. I thought this will be easy I can just figure it out myself, and boy was I WRONG!
This is so amazing. I love how clear an step-by-step you have provided this information. I have been struggling and you have my perfect answer. I can't thank you enough!!
I'm glad that I could help!
This was extremely helpful and just what I was looking for. Thanks for your clear explanation and detail. This actually helped me learn a couple of other things as well that I’d been wondering about!
I'm so happy to hear that. Glad I could help!
April, your videos make me constantly want to learn more! Thank you for these videos.
I'm so glad to hear that! You're very welcome 🙂
Very helpful - like how you explained each step with Json - and using first and name if multiple file attachments.
Hi April. Wow! I followed your steps and it actually worked first time - I am super impressed and thank you so much!
Yay! Love when it works the first time :)
So glad I found your video - I've been playing around with this for weeks and after following your steps I got it working in under 5 minutes!
Fantastic! Glad this was helpful!
This is brilliant!! Thank you! I have been trying for days to find a video showing how to do this that actually works!
You're very welcome, glad it helped!
After 3 years, you helped me alot, thanks !
Glad I could help!
April, this video was very clear and scoped perfectly. Great job!
Thanks Lawrence!
Your videos are the best! So well explained and thorough. You save me so much headache. THANK YOU, THANK YOU, THANK YOU!
I can't tell you how often I come back to this great video for instruction. Thank you SO much April.
Any chance of you making a video if there are TWO attachments within the same form that you need in the same SharePoint list?
Great tutorial! It's so good, it was recommended in the power community as a solution! Thanks.
Oh wow, that's awesome!
YES! THANK YOU! Been looking all morning for this solution. Much appreciated
Glad to help!!
Thankyou for the vid - I have been struggling parsing the JSON until I saw this. Awesome.
You're welcome!
I love you
Thank you so much ♥
You're our Queen. Thank you so much for your time and simple instructions.
Awesome video, April! Love your channel.
Thank you so much!
Thank you for your video, April. It is well done, very helpful and your expertise is apparent. I am trying to create a master folder in Sharepoint with a tracking document for a training program to drop certificates of completed programs in to. This is for a volunteer organization I am a part of. My challenge is that there are multiple questions each with a required certificate.
April, amazing video. Thank you so much! One thing I figured out - and I know this was at the very end when you were trying to finish up so there was not a lot of time spent on it: You show two "Apply to each" boxes when grabbing multiple files, but I could only get it to work when I had ONE "Apply to each" action with both the "Get file Content using path" & the "Add attachment" in the same "Apply to each" action 'box.' Thanks again!!
I was having same issue. Thanks for posting as this was driving me crazy! Works now once I put them in the same Apply to each action.
This worked! Thank you
Hi April!!! Thank you so much for this video. I was finally able to get it to work and am DELIGHTED!
I'm so glad it worked!
@@AprilDunnam my flow is being funky. Uploading a file is not mandatory and there will be instances where a file will not be present. Do I have to do a yes/no condition?
April, Thank you for the how-to. I follow your guide as exactly as I can tell however, I am running into a problem. When there is no attachment the flow fails.
Thank God for pause because you sprinted through this process. :)
Fun fact: You can also adjust the playback speed of a video by clicking the settings gear in the video. Maybe you can try that next time if the FREE content you're watching isn't at your preferred pace. Could prevent you from having to leave passive aggressive comments on other videos :)
9:55 Its unclear how that First formula populated. Can you please advise?
Awesome work and very useful video, April. Keep it going ! 👌
Thank you so much!
Thanks so much for this! I think i would have spent ages trying to figure this out.
You're very welcome!
Thanks a lot, this was helpful and you covered everything, yes I tried this in a Group in SharePoint and it works fine.
Glad to hear!
This is great thanks, helped me further streamline our processes and reduce email traffic in our business.
Glad it helped!
Another great Video April! Thanks so much for helping me automate my business
You are so welcome Lauren!
Thank you for this informative video ! I only have a question regarding the SharePoint list column of the attachment and what type is it ?
April I need help, I used
This flow and everything is fine but when I add Multiple photos in the form, it goes to the share point but when I try to open from
The share point attachment area the image won’t display after it opens. But if I only upload one image it opens fine.
Hey, I have this same issue. Flow works perfect for just one attachment but for more than one attachment is a problem. If you found a solution to this, please let me know.
Thanks April as this worked great if the form has an attachment. However, my flow failed when I submitted a response without one. Is there a way to avoid this?
Did you identify a solution?
Another fantastic video April!
Thanks so much!
Great video and good explanation about JSON. But an easier way to grab the file is instead of using "Get file content using path" is to use "Get file content" and use "id" from Parse JSON. And you already have the "name" in Parse JSON. No need for an expression when you Add attachement.
Joakim, thanks sooooo much for posting this. In my environment I could NOT get the get file content using path method to work but your proposed change fixed it right up for me and it's working now. you rock!
for anyone who has issue finding "file content" , this is the best approach. when using "Get file content" , don't put the path (you will have issues otherwise), just use JSON id alone; first(body('Parse_JSON'))?['id'] and then when adding attachment , as Joakim mentioned, you just need to add "name" as it will be available in the dynamic content list under "Parse JSON"
What parameters do you have to have in the List in order for Excel files to be extracted from a form? I am really struggling to make this work. I will try your tip and check if it would work.
Great explanation, you've saved me many hours! Thank you
Yay! So happy to hear that 🙂
Hi April this is great. Can we create the attachment not in 'attachment' column, but in a custom column of sharepoint list? Lets say i have 'Employee ID Card' img column i create. I want the form submission attachment to be stored on that column.
Hi April, thank you so much for this video it has been great to be able to get my attachments over to MS Lists. I now have an issue with the error below which appears when users do not add an attachment. Could you help.
Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'.
I'm having the same issue - some MS forms without attachments (not required). Tried adding in "anyOf" however this issues a 'Enter a valid json' error message.
@April Dunnam - if you happen to have a solution for this it would be a great addition to a very instructive video.
Anita - If you've happened to solve for this, would be grateful to get how you approached this.
Thank you, April, this was very helpful! An easy and elegant way... 🙂
Glad it was helpful!
I have my flow set up just like your vid, but get an error 'Get file content using path' failed - The resource could not be found. The attachment is in the proper SharePoint folder. On the inputs of Get file content using path action, the file path = /Apps/Microsoft Forms/file name test.docx What am I missing? Any hints would be gladly taken!
Hi April, thanks for this very informative video.
I have a form which has TWO fields for adding attachments (the first is to add an XLS expense claim form, the second is to add the receipts saved as a PDF doc).
I've followed your video but created two separate flows (Parse JSON, Get file contents using path and Add attachment). For both i've used the "first(body('Parse_JSON'))?['name'] expression" as each of these two fields only allows the uploading of 1 attachment each.
The files are correctly saved in their respective folders on OneDrive (Question and Question 2).
Question's file format is XXXX.XLS (e.g. Expenses_BOB.xls),
Question 2 file format is XXXX.PDF (e.g. Receipts_BOB.pdf)
The problem i am having is the second one is failing (at Get file contents using path).
The raw input is:
"host": {
"connectionReferenceName": "shared_onedriveforbusiness",
"operationId": "GetFileContentByPath"
},
"parameters": {
"path": "/Apps/Microsoft Forms/Expense Claim Form/Question 2/Expenses_BOB.xls",
"inferContentType": true
It is failing with a 404 Status, The resource could not be found.
Looking at the path in the second "Get file contents using path" it is referencing the file from the first "Get file contents using path" (Expenses_BOB.xls instead of Receipts_BOB.pdf)
How do I address that?
Many thanks in advance, Graeme
The video was very helpfull to me. As you mentioned if the attachment is more than 1 we should not use first(body) expression, so what would be expression for 3 attachment or >3
Thank you April for this very helpful video
I wonder how you managed to display the document in columns in micsosoft list?
Hi April, I use this video all the time for my Flows that have attachments - do you perhaps have an adjustment for when there is not attachment as sometimes we do no have a document required as evidence for the Flow. Warm regards
Hi April, thank you so much for this video. Question- how did you create the expression to include the parse json? I keep getting an error message that.
Thank you so much! I never comment.
This was incredibly helpful.
You're welcome! Glad it helped!
Thank you a lot April, this was very very helpful !!!
Glad it was helpful!
Thank you so much April, exactly what I needed
You are so welcome!
Is there a step that can be shared for how you would do automatic maintenance on the original location of the documents uploaded. In your example you're taking from the original one drive location and copying them to the list. Works so well! But we still have a lot of files that will just sit in the original location. Thinking it would be a good idea to keep that trimmed down since already found in the list.
How do you make the sharepoint folder with the columns? I cant figure this out or find any tutorials. Looking at 1:42 timestamp
This is exactly what I am looking for. Thank you! 😊
You’re welcome 😊
Dear April
you know, this is a lake of desert for me !!!!
Thanks greatly !!
You're welcome 😊
Thank you for this valuable training video. It was extremely helpful and easy to follow.
Great to hear it was helpful and easy to follow. Thanks!
Hi, this is super helpful. Quick question: My flow works great when I upload a file to my form, but it fails at the Parse JSON step if there was no file uploaded. Is there a way to edit the parse JSON step so that it skips if there is no form file upload? Thanks!
Great instruction, really nice and clear. However I think I followed it to a T but it returned an error: Action 'Parse_JSON' failed, with error details stating: The 'content' property of actions of type 'ParseJson' must be valid JSON. The provided value cannot be parsed: 'Unexpected character encountered while parsing value:
hi, I have the same issue
Hi April,
I setup the flow and it worked fine, however after going live some users didn't attach any files on the form. Then flow failed to run for the requests which do have attachments. Could you please provide a solution to it. I have already searched for the solution on the flow community but am unable to get to the solution
Hi! I have the same issue (this is how I find this video - trying to find solution). This is good when attachment is required. Doesn't work if it's voluntary.
This was really helpful! I am having trouble trying to get the attachment to pop up using a group form and Sharepoint Library. Any ideas on what I should place in the file content area?
Hi April,
Thanks so much for this training material!
It's so clear to follow with your explaination. But I have a question here when I have one question in Form to ask user to upload attachments, while ppl can upload photos or videos. And I have created the flow per what you have mentioned in the video, but I could only open the photos in SharePoint when the user upload both photo and video in the same Form. And I can open the video when the user only upload video in that Form.
If there is anything I have to edit in the flow in order to solve this issue? Thanks so much!
Wow thank you so much April. Such a helpful video. I am wondering if you can help me. I have gone through the steps & I am struggling with the Parse JSON section. It says my schema is invalid. When copying the field in my Run History. All of my answers are situated in ''Body'' and are not individual like seen in your video. Does this make a difference to my flow going forward?
You're awesome!
Thank you very much. You saved my soul and my job. lol
Greetings from Brazil ;)
Wow I saved a soul and a job! That's a good day! Glad I could help :)
Hi, thank you so much for this video. Makes it so easy to create. So I want to make an approval work flow where when the approval prompt comes up, the approver will be able to see the attachment. will this process be able to make this happen?
Thank you.
Yes you can do that. Just need to tweak it slightly following this documentation which shows how to send an attachment in an approval request: docs.microsoft.com/en-us/power-automate/approval-attachments#:~:text=Create%20approval%20flows%20with%20attachments%201%20Create%20the,requests%20in%20the%20approvals%20center%20as%20well.%20
@@AprilDunnam Thank you so much. I would check it out and get back to you on it. Thank you so much.
@@AprilDunnam Hi, Thank you for the other time. Okay, so I created a form in a group and connected it to a flow but my issue is that I am unable to use the method in this video to connect the One Drive of that group to the flow. Is there any way you can help with that???
Hi April, this was an incredibly informative video. One issue that that I am facing is that I cannot open the documents in both the library and list. I’m unsure what the issue is but locally I can open the documents but not through share point. Do you know how to fix this?
Hello April,
Thank you for clearly explained the steps.I do have a form with attachment that i am looking to collect the data in List, but when i create the item and plugged the site address, the list name cannot be found.I uploaded the files to One drive and can see the file in the Team folder that i created.What do you suggest me to do in that case ? Thank you.
Hi
That is really nice useful
One quick question can we control by file size and type
e. g. If same emails logic have different type and size of files and we need only files size over 4 KB and type as HTML.
Can we config as addition to same scenario of yours
This video saved so much work for me! Thank you so much! Do you have a video that shows how to import more than one attachment? Thank you again!
thank you so much I have been trying this for my automation for almost 2 days. it isn't working. With your guidance, I can successfully automate for the first time.
Hi April, thanks for this video, can we get forms last response in a excel file and send it as email attachment to a set of people by power automate?
Thank you very much. Great video, helping a lot. Do you know if we can use the same structure, but, change the uploaded file name with the answers from the MS Forms?
I'm trying to do that too, did you figure it out?
@@chatuni no. I saw a video but it was so complex that I am not using that
Great video! It's very close to what I've been searching for. What would need to be added to this process to have the MS Form attachments (for a group form) be added to a document library according to the characters contained in the file attachment name? Example, files that contain the word "blue" are placed in the document library folder titled "Blue." Really hope you're able to help with this. Thanks!
Hey, great help so far thank you. How would it work for me to do exactly the same but with an excel doc as the attachment as opposed to the image?
Hi April, what column type is your Attachments column in the list?
HI April, 1st, thank you for making these instructional videos. Very good! I'm having an issue with my file upload. I'd like it to show up in the list, but everytime I try to copy the JSON code and place it in the parse sample box it says there are errors. I've tried viewing and following different videos and same issue appears. Any suggestions or thoughts?
Hi April, this worked for attaching my first attachment. Although I followed the same exact steps again for my 2nd attachment and am getting the error that the file does not exist. Is it a different expression to be used for the 2nd attachment?
sadly this hasn't worked for me, i'm unsure if its a restriction by my company or something i'm doing wrong, i followed your video entirely but it keeps failing at the get file path using onedrive content i get the following error on the output log {
"status": 404,
"message": "The resource could not be found.",
"source": "api.connectorp.svc.ms"
}
am lost as to how to get this sorted. :(
What if you want to retrieve files from both upload questions? Question and Question 1? I am particularly needing to save them to Sharepoint.
@April: Hi, my Flow run failed (on the Step: Parse JSON) !!! Error Details: Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'. Any Ideas why i got this massage?
Thanks for this video! It was very useful :D It worked successfully!
Yay! Glad it worked :)
You are truly amazing. Save my day❤
I'm so happy I could help!
thank you very much for your video! I have a question. I have a form where the user can upload 1 attachment or 3 attachments. Unfortunately the flow does not work in this case, I have this error: "The execution of the 'Apply_to_all' action of the model failed. The result of evaluating the expression 'foreach' '@outputs (' compose_output_ buffer ')' is of type 'Null'. The result must be a valid array". How can I do? thank you
Great video . I’ve an issue when using Name from JSON . In the SharePoint when i access the document which is attached to the list item is corrupted . Any advise how to fix this ?
Hello April, I would like to ask for your help because I have a form where attachment is not a mandatory field. How should I change the process in order to save the other data to my list? Thanks in advance
Thank you for your video, really helped! If I'd like to take this one step further and have the image that was uploaded from forms show in an approval before I add it to SharePoint (if approved), how would you go towards accomplish this? Thanks again.
So I did this to a T and it works however, it's doubling my list item entry. For every entry I'm getting two line items in my list and only one carries the value. I don't know what is going on.... So annoyed I can't figure this out on my own. I tried powerapps custom form but wouldn't work and now i'm stuck with forms for users to enter a entry into a list. Annoyed, love SharePoint etc but I'm used to MS ACCESS where things were simpler. :/
OMG! I'm so stupid, as I finished writing this, I realized I have two demo flows - one from another video trying to explain this and yours! I'm dumb! Disregard my frustration, I just deleted the other flow hahahaha. Little to no sleep here. What a dodo.
Haha - no joke I have did the exact same thing before 😂 Glad you got it sorted out!
I have everything working up to the "Get File Content" section where it grabs the file name. Even though the file exists, it keeps advising that the fild id is not valid. Any thoughts?
This is really helpful, the only thing I have noticed is that when the image is saving into a folder it is then creating a new folder of the image name which is empty. What would be causing this?
What if the uploaded multiple photos has the same file name then that returns an error? How do we still capture the uploaded photos and yet rename tham before adding them as attachments?
Hi April, I have been using this video for some really important Flows in our business but in the past few days I have received an error when trying to open the document in the Sharepoint List. I have followed your steps implicitly and it works if there is one document but when I try multiple documents I cannot open the document - any idea what could be wrong?
Thank you. I’m having issues in pasting the code in json expression. Is there a reason for it? It doesn’t let me paste the code. Just comes up an empty cell.
Hi April, thank you for the super useful video. Could you let me know how I can move these attachments to a SharePoint folder? I can't seem to add the folder location in the "Create Item" step on Automate
Hi April,
Thank you for the video but I can't do it with a Sharepoint library.
I have 2 possible choices:
- Toggle the attachment
- Add in my MS List the URL that leads to the document library.
Can you help me to find a solution? I am completely blocked.
Great video anyway.
Thanks
Great tutorial. Much appreciated. Do you know if the attachments can be saved in designated folders on MS Teams ?
This is a great video, what is the full schema? When I followed the steps this was in my schema "type": {} and "uploadSessionUrl": {} and is sending an error code. Any suggestions on how to fix this issue?
Hi April, great video, thank you. Do you have any idea how to get round the fact that Microsoft Forms automatically adds '_anonymous' or the submitter's name to the end of the filename when uploaded? It's driving me insane!!!!! :)
In the Get file content step, I get an error, "Action 'Get_file_content' failed" and "The file id '/Apps/Microsoft Forms/My Folder/filename' is not valid." then the flow does not move to Add Attachment, however, the file is saved to my onedrive correctly. Any ideas?
Im still trying to figure this one out.