Power Automate and Microsoft Forms: Send uploaded files as email attachments

Power Automate and Microsoft Forms: Send uploaded files as email attachments

Chad Kealey

3 года назад

68,773 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@BulletFever409
@BulletFever409 - 15.01.2024 15:42

Years later this is still incredibly helpful and has just solved a huge headache I was having with getting this going. thank you!

Ответить
@simeonherbert371
@simeonherbert371 - 12.01.2024 15:26

This is the best video, and finally got what I wanted working - the Get File Metadata was the answer!! However, I now have a challenge, in that if there are no files attached, mine are not mandatory the parse fails and I assume the rest will email with Array will fail - I assume I need 2 if statements, one for if file is attached, then do the parse and one to send the email if the array is not empty (I have 2 different attachment requests going into a single array var) ???

Ответить
@atulkhaire2856
@atulkhaire2856 - 01.01.2024 14:17

I am getting error in "Get File Metadata" .
Error: The resource could not be found.

Ответить
@Whereslib
@Whereslib - 21.12.2023 16:30

This was excellent thank you so much! Solved my problem.

Ответить
@zakaryamaatou2039
@zakaryamaatou2039 - 20.12.2023 16:37

Super Super usefull, flawless explanation, many thanks my friend

Ответить
@emmanuelsimiyu3336
@emmanuelsimiyu3336 - 19.12.2023 07:35

Hi,

Thanks for the clear video. Im trying to send image attachment. I have set up my flow just as yours and it runs sucessfully. The issue is that when I open the email attachment, it says 'We couldnt opent the image file'. Even when i download the attachment it says that the format is not supported. Do you have any idea why? thanks again.

Ответить
@ndm2221
@ndm2221 - 06.12.2023 00:43

Thank you so much for posting this! It was fantastic.

Ответить
@user-ko6rw1bz2w
@user-ko6rw1bz2w - 29.11.2023 00:33

Very clear and easy to follow guide, perfection to be quite honest. Thank you.

Ответить
@JiDailyActivity
@JiDailyActivity - 16.11.2023 11:28

How can I save more than 2 attachments in an email?

Ответить
@praveenrashinkar
@praveenrashinkar - 16.11.2023 03:21

No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'.
clientRequestId: 02b4fc2b-fd9a-4a25-83c3-209037a05297

can you help with the above error?

Ответить
@mohammeddaghash1325
@mohammeddaghash1325 - 15.11.2023 04:10

Hi Chad,
Thank you for this valuable tutorial!
I need to do this for multiple questions and I repeated (parse JSON and apply to each) for each question but it duplicates the same file for one question only. (I'm using Microsoft Office 365 send an email action)
How can I solve this?

Ответить
@claytonworthen
@claytonworthen - 14.11.2023 23:19

This was a HUGE. Thank you for making this. Made my life much easier.

Ответить
@vascocarvalhais5288
@vascocarvalhais5288 - 14.11.2023 10:33

Hello Chad,

Do you know how can I upload a picture taken from my iphone without having any drive assigned?

Ответить
@jhamaker
@jhamaker - 09.11.2023 03:15

If I want to add a conditional to this for when there is no attachment, what is the right point to do so?

Ответить
@mrmpanah74
@mrmpanah74 - 25.10.2023 11:41

Thanks for your tutorial, it's really helpful. In my scenario, I have 10 questions with attachments (each question can upload up to 2 attachments), how we can add images to the Word template? Also, there is a 10MB limit for Word online? thanks in advance

Ответить
@user-ls5ft1pz1y
@user-ls5ft1pz1y - 25.10.2023 00:02

Hey Chad! Thanks for this! I keep getting the error Action 'Get_file_metadata' failed. It says the file id is not valid. Any ideas?

Ответить
@Onik88823
@Onik88823 - 22.10.2023 13:31

Hi Chad,

I want to express my gratitude for your tutorial. It was incredibly clear and worked flawlessly for me.

I have a request - could you create a video demonstrating how to attach two different types of attachments together to an email in Power Automate? Specifically, I'm interested in attaching Word documents generated based on form responses as well as files uploaded via the form. Your guidance would be greatly appreciated!

Thank you in advance!

Ответить
@juancadiz9487
@juancadiz9487 - 20.09.2023 01:46

Hi! Thank you for this!

Ответить
@user-cz7gx2vu6w
@user-cz7gx2vu6w - 14.09.2023 00:32

Hello Chad, I successfully followed this tutorial and got my flow to work. However, if there is no attachment added into the form, which will happen a lot in my case, the parse JSON will give me an error saying "InvalidTemplate. 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 assume it just doesnt like the fact there is no attachment... Would you have a suggestion how I can go around this? Thank you so much

Ответить
@mariajauslin1107
@mariajauslin1107 - 08.09.2023 22:43

Hi Chad, I was using this flow and it worked perfectly. Now I get an error message for JSON Parse and I saw that the recommendation is to create an if empty condition. I did that and it works now. I am wondering why this has changed. Any insights?

Ответить
@GeORZsK
@GeORZsK - 01.09.2023 17:06

What do I have to do to send 2 attchments uploaded to the same form?

Ответить
@aweswagomness
@aweswagomness - 30.08.2023 19:54

I have watched five or six videos attempting to teach me this very thing. Yours is the one that actually worked. You have saved me so much headache and frustration. I am incredibly grateful. Well done!

Ответить
@towfiquekabir3952
@towfiquekabir3952 - 30.08.2023 19:03

Hi Chad, thank you for this video, i have a question. I want my colleagues to be able to use the form and upload documents and whenever they try to do that, the flow fails and it gives out this error message "You are not authorized to send mail on behalf of the specified sending account.
clientRequestId: 4eb3acbb-3b03-4d03-a3fe-3dd3648f8140
serviceRequestId: 753d2a40-c431-02ba-37e9-8fb31be5ed27"

Are you able to help me work out what I may be doing wrong?

Ответить
@user-md3xk8kt9h
@user-md3xk8kt9h - 21.08.2023 20:00

Hi Chad, do I need to make changes to attach this to an approval email using the "start and wait for an approval" function. It resulted in an error for me

Ответить
@user-ks6eh1gm2s
@user-ks6eh1gm2s - 17.08.2023 15:38

Hi Chad, thanks for the tutorial. May I know how to send the Power Apps Email instead of Outlook one?

Ответить
@pajehh
@pajehh - 10.08.2023 06:25

OMG Thanks very much for this video.

What about if i have 2 fields for file upload, for example one before and another oe after the changes?

Should i create 2 simmilar flows?

Ответить
@TheJoshdwyer
@TheJoshdwyer - 27.07.2023 20:11

Im having an error where the attachment does not open from the email received. How do i fix this?

Ответить
@mauriceleetp
@mauriceleetp - 26.07.2023 09:29

Thank you so much for this video, It works!

Ответить
@brierleya
@brierleya - 20.07.2023 14:19

Awesome help, easy to follow and works perfectly! Thank you

Ответить
@leirbagpositivo
@leirbagpositivo - 19.07.2023 15:26

was trying to set this for a while. Tks man.

wish you the best.

Ответить
@claudiobravo9171
@claudiobravo9171 - 18.07.2023 20:23

Hello Chad, excelent video but what about upload multiple files?

Ответить
@SanaOweis
@SanaOweis - 17.07.2023 17:44

Great Job Mr. Chad

Ответить
@jordanseremy5763
@jordanseremy5763 - 06.07.2023 13:33

Hello together, grate video!!
Any way to apply this without the user data for the anonymous data transfer though the functions account ??

Ответить
@scottrogers8322
@scottrogers8322 - 27.06.2023 15:20

Hi Chad,

I keep getting a Parse error when trying to use your schema, any suggestions?

Ответить
@TCJones
@TCJones - 26.06.2023 17:13

Ok So when I make the json, if i put the cod in the Generate from sample popup window it strips out the "type": " array" line and i get an error when i run it saying it was expecting an object not an array, But if i past your code in the schema window, with out clicking on the gen sample thing 1st it takes the code and it runs and returns all the information, But when i then try and do the initialize var bit and add the append to array variable, i get an error telling me to "enter A valid Json"

Ответить
@BladeSlayerr
@BladeSlayerr - 15.06.2023 12:30

A question:
the files are being saved with my name at the end of their names..
how do i prevent it from happening?

Ответить
@BladeSlayerr
@BladeSlayerr - 14.06.2023 14:19

Awesome video.. helped a lot even after 2 years.. thank you.

i just wanted to give you an easy solution on being able to get the flow to work when there is no file uploaded:

1) add a Condition after you initialize varAttachments.

2) set the left value to the Dynamic contenet of the uploading question.
make it "is equal to" and leave the right value empty.

3) move the Parse JSON to the "If no" section of the condition and move the "Apply to each" right below it (as well in the "If no" section).

the logic is this: if there is no file uploaded, the field is empty.
so if it empty - there is no reason for all the JSON thing to start.

Ответить
@ElkeB83
@ElkeB83 - 08.06.2023 20:58

Hi Chad, is it possible to attach the Forms form as an attachment to the email? Thnx in advance for your reaction!

Ответить
@DeadbeatGaming1705
@DeadbeatGaming1705 - 07.06.2023 12:40

Hi Chad great work. I just have one issue here.. when a requestor 3rd person is uploading a document to the form, the attachment does not open. It shows as unreadable content error for word file and error for jpg. Can you please help.

Ответить
@samanthamatlick7924
@samanthamatlick7924 - 16.05.2023 05:38

I’ve been trying and trying and my flow kept failing at the metadata. I finally realized that the metadata was being kept on Sharepoint and not one drive. Do you if I can do the same thing except with sharepoint or have it upload to one drive?

Ответить
@anderssvendsen9703
@anderssvendsen9703 - 04.05.2023 15:49

Fantastic, Chad. Many thanks!!

Ответить
@zachwelding4996
@zachwelding4996 - 21.04.2023 19:32

Life saver! I was trying to get this by using some string manipulation with the Link attribute and it wouldn't work. Your approach with using the Get File Metadata first was the trick.

Ответить
@revolweu
@revolweu - 13.04.2023 16:56

Hi, thanks for your tutorials. I tried doing the same thing here and power automate says the flow is good, I see both attachments written there but email comes with no files whatsoever, please help

Ответить
@user-cx4wr2pd5k
@user-cx4wr2pd5k - 11.04.2023 01:58

Thanks for the awesome tutorial! What can we do if we want to also add the attachment from a second form question? So this would be two attachments from two different form questions.

Thank you!

Ответить
@timothytay7886
@timothytay7886 - 10.04.2023 06:00

hi chad, thank you for this video. it was very detailed and simple to follow for a beginner user like me. I have been researching on this issue and I was unable to find a suitable solution and was almost close to giving up. But fortunately, I chanced upon your video. Thank you for saving my workflow. I hope you continue making these videos. Thank you so much.

Ответить
@DWJ2
@DWJ2 - 08.04.2023 01:19

Works. Excellent video

Ответить
@jamo2006
@jamo2006 - 22.03.2023 21:52

This totally worked!! Well done and thank you, Chad!

Ответить
@michaelburris6132
@michaelburris6132 - 15.03.2023 22:11

Awesome video, I researched how to do this for a few hours and this was the best resource I found. Thank you!

Ответить
@kallac
@kallac - 07.03.2023 18:40

Hi Chad! Thanks for your help, it was really hard to find a solution in the internet, but at the end I found you <3. The only part I didn't get to understand, but I didn't use, was the Get User Profile, I mean, I now what it does, but I don't know what to put in the "Id" part.

Also, Can i put a name to each file? (i'm only attaching one).

Again, thnks!

Best regards from Perú!

Ответить