web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Attaching file uploads...
Power Automate
Unanswered

Attaching file uploads from forms to email after it was approved

(0) ShareShare
ReportReport
Posted on by 6

I have setup a workflow so when a response is submitted in forms with attachments, it is sent for approval with the attachments uploaded to forms. Upon the conditional approval of yes or no, I want to send an email for each of those responses with the attachments which were submitted in forms.

 

I have successfully been able to add the attachments to the approver when they receive an email to approve using the json file format, but I also want to add these attachments after the approval to an email notifying if the request was approved or rejected.

Categories:
  • joeb_saab Profile Picture
    6 on at

    joeb_saab_0-1673650966590.png

    When a response is submitted in forms to trigger an approval and then send a conditional email based on approval response. The current flow sends the request for approval to the approver with the attachments from forms, however the last step of sending the "yes" or "no" email, I am having trouble sending that email with the attachments from the forms

  • joeb_saab Profile Picture
    6 on at

    I get the following error when trying to add the varAttachments to the email

    joeb_saab_2-1673651367207.png

     

     

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @joeb_saab 

     

    The Json format of attachments is different between sending email and sending approval.

    If you need to add the send email action, you need to create two array variables.

    One is used to save the attachment for sending approval, and the other is used to save the attachment for sending mail.

    vliweimsft_0-1673835188663.png

    vliweimsft_1-1673835204400.png

     

    In addition, when sending messages, different recipients need to be separated by semicolons instead of commas.

     

    Best Regards,

    Levi

  • joeb_saab Profile Picture
    6 on at

    Hi Levi,

     

    Thank you for the information. For the initialize variable action, I am receiving the following error when trying to put the step for send an email with "The operation 'Initialize variable' can only be used at top level.

     

    Please let me know if you need any further information to assist. Thank you.

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @joeb_saab 

     

    You can place two actions that initialize variables at the top of the flow, for example below the trigger.

     

    Best Regards,

    Levi

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard