cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
charlyusa
Frequent Visitor

add a form attachment to an email

I have a form set up where people can attach a screenshot of their issues. Then an email goes out to the correct person that can help them with the problem. How can I attach that attachment to the email going out?

Thanks 

2 ACCEPTED SOLUTIONS

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @charlyusa 

 

If it is a group form, checkout this post: https://www.bythedevs.com/post/working-with-files-on-ms-forms-group-form-in-ms-power-automate

 

For a regular form: https://www.bythedevs.com/post/working-with-files-on-ms-forms-in-ms-power-automate

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

 

Hi @charlyusa ,

 

You should initialize a variable below Get response details action.

You only need to configure Append to an array action in Apply to each.

And Send an email action that needs to be configured outside Apply to each.

 

Hope that makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

16 REPLIES 16
fchopo
Super User II
Super User II

Hello @charlyusa 

Have a look a this thread: https://powerusers.microsoft.com/t5/Building-Flows/Using-the-new-quot-Upload-Attachment-quot-in-Micr...

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!
yashag2255
Dual Super User II
Dual Super User II

Hi @charlyusa 

 

If it is a group form, checkout this post: https://www.bythedevs.com/post/working-with-files-on-ms-forms-group-form-in-ms-power-automate

 

For a regular form: https://www.bythedevs.com/post/working-with-files-on-ms-forms-in-ms-power-automate

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Hi 

This is for a form on group. I think i'm missing something I get this error. Screen Shot 2020-04-15 at 3.12.43 PM.png

 

 

Hi @charlyusa ,

 

If the form submission does not contains attachments, this error will display.

Please check this similar thread and use condition to check if the response contains files:

https://powerusers.microsoft.com/t5/Building-Flows/Flow-failed-if-no-attachment-in-Microsoft-Forms/t...

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @charlyusa 

 

You have to check if the user has added any attachments or not. I have explained the same towards the end in this post: https://www.bythedevs.com/post/working-with-files-on-ms-forms-in-ms-power-automate

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thank you sir, took care of this issue 

Now I can find Attachment when trying to create the email. 

I think I have something wrong in the setup on the screenshot. How do I do the FXBody?Screen Shot 2020-04-16 at 8.30.14 AM.png

Hi @charlyusa 

 

So you need to remove that body from the append to array variable action and select the content from the dynamic selector that is the output of the get content via path action. 

 

Hope this helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

I'm having issue with the append to array variable. 

Can you describe step by step what I need to enter in the value?

Thank you 

 

Hi @yashag2255 ,

 

Please check this similar thread to get file content and append the file content to the array variable:

https://powerusers.microsoft.com/t5/Building-Flows/Multiple-picture-in-email-from-Forms/td-p/512063

 

If the form is the group form, you could replace the Get file content-OneDrive for Business connector with Get file using path-SharePoint connector:

O365-Group-Form-responses-with-attachments-to-Sharepoint-List

 

Then if you encounter the error like "No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'.\r\nclientRequestId", please check the comments in this blog:

https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

 

Please take a try and feel free to let us know if you have any questions.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

OK I got this to work but now I need to add a condition in case there is no attachment 

I have tried this solution https://powerusers.microsoft.com/t5/Building-Flows/Flow-failed-if-no-attachment-in-Microsoft-Forms/m...

but it will not let me add the initialize variable that I need, it keeps telling me that it can only be at top level. 

Any idea what I should do?

Thanks 

charlyusa
Frequent Visitor

This is how I have it setup and and this is the error I get 

Can anyone help?

Screen Shot 2020-04-17 at 9.29.56 AM.pngScreen Shot 2020-04-17 at 9.29.48 AM.png

 

Hi @charlyusa ,

 

Please try to refer to the method provided by me in this thread:

https://powerusers.microsoft.com/t5/Building-Flows/Flow-failed-if-no-attachment-in-Microsoft-Forms/m...

 

Use length() function to check if there are attachments in the form response.

Fill the Dynamic content corresponding to the attachment in Compose and configure the output of Compose in length() function.

 

Besides, you need to fill file content output from Get file content using path action in Append to array variable.

 

Please take a try again.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you

Unfortunately, I keep getting this message when trying to move Initialize Variable to the Condition YES box.

Any idea?Screen Shot 2020-04-20 at 9.33.48 AM.png

 

Check this thread and learn how to use variable:

https://powerusers.microsoft.com/t5/Building-Flows/Multiple-picture-in-email-from-Forms/td-p/512063

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

All of these are working with regular form, mine is a group form and the attachment is being saved to SharePoint. 

If I put a condition like in the example. it doesn't let me move the initialize variable to the condition under the Parse JSON

See the attached screenshot. Do you know a way around this? Screen Shot 2020-04-20 at 9.33.48 AM.png

 

Hi @charlyusa ,

 

You should initialize a variable below Get response details action.

You only need to configure Append to an array action in Apply to each.

And Send an email action that needs to be configured outside Apply to each.

 

Hope that makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,268)