cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
h4X6
Helper I
Helper I

Help with uploads in forms and emailing out

Hello everyone

 

I have been racking my brain with this for days/weeks, I have tried so many tutorials, and guides but nothing seems to work.

 

I have a form, set up for end user to submit a ticket for help (help desk IT ticket). They have to complete questions, give information, etc. and one of the questions is if they have an image or screenshot to share to upload it to the form (using the upload file option on MS Forms).

 

Well, this is where I am stuck. I do not care if the upload is attached to the email or just a link to view it. What I am running into issues with is when there is nothing attached, it errors out. I have tried various conditions, and nothing seems to work.

 

Essentially, what I am trying to do is as follows:

 

Completed form + attachment = emails out

Completed form + no attachment = emails out

 

Any guidance or help would be appreciated... Like I said, I can get everything to work perfectly IF there is an something uploaded, where it errors out is when there is nothing uploaded.

 

Thank you in advance!

26 REPLIES 26
h4X6
Helper I
Helper I

Oh my, how did I not think of that... Thank you!

 

However, I am still having and issue when there is an upload. It fails on the Yes condition. There are files uploaded, however its saying that it cannot be null or empty, when obviously that is not the case. I did upload 3 files (2 jpg, and 1 pdf)

 

h4X6_0-1618717871268.png

Pictures of my entire flow:

 

h4X6_2-1618717933953.png

 

h4X6_3-1618717966966.png

 

h4X6_6-1618718184509.png

 

 

h4X6_4-1618717986418.png

 

h4X6_5-1618717999066.png

 

So right now, its stuck on the yes condition, saying there is nothing uploaded, when in fact there is. The send email is reporting that "Parameter 'Attachment Content' cannot be null or empty. clientRequestId: bac4a595-9f8f-412b-b6d2-33374012e713"

Hey @h4X6 

 

Please review the video tutorial below-

 

https://www.youtube.com/watch?v=kNC8q6NzBEc 

 

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

Pstork1
Dual Super User III
Dual Super User III

From the run where it errors out can you show me what one of the append to variable results looks like?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Is this what you mean?

 

h4X6_0-1618786132211.png

 

Or this is the output from the error:

 

h4X6_1-1618786188163.png

 

I followed this to a T, exactly the same... and no matter what, the attachment is corrupt.

 

I attach a PDF or jpg, doesn't matter. It flows fine, and emails fine. But the attachments in the email are corrupted, and cannot be opened. Ever single one of them

h4X6
Helper I
Helper I

Oh sweetness..... I got it working. Looks like I had some extra " " in the Append to aray variable.

 

Both uploads and no-uploads are working now.

 

Thank you all for your help with this, I cannot express my appreciation enough!

Hello @h4X6 

 

Wohoo.. I am glad that the problem is resolved.

 

Please mark the relevant answers as solutions, so that it might help other people who have a similar problem.

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (2,577)