Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Trying to take attachment from Forms and inserting into Approvals

(0) ShareShare
ReportReport
Posted on by

I have a form that takes an attachment as one of the questions. It is always just 1 excel file (xlsx). Then I need to take the attachment and insert it into an Approval. No changes need to be made to the file in the process. I've tried several things, but I always end up with a message from Excel saying that the file is corrupted. If I specify the MimeType (which I've verified several times is the correct MimeType), then the Approval message doesn't include the attachment.

 

waterguy1_0-1673456429260.png

waterguy1_1-1673456462157.png

waterguy1_2-1673456537948.png

 

 

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    ouput from previous steps:

    json(outputs('Get_response_details')?['body/r5e6b44f5381945f8b67044280e9ef4a4'])
     
    Get file metadata:
    items('Apply_to_each')?['id'
     
    waterguy1_0-1674249651535.png

     

  • Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    Hi @Anonymous ,

     

    Please show your Apply to Each 7 action and please show the expressions in used (1) and (2) below:

     

    Snag_2d2a591e.png


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site 

  • Community Power Platform Member Profile Picture
    on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    That's what I have. As previously stated, this error occurs

     

    waterguy1_0-1674174306199.png

     

  • Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    Hi @Anonymous ,

     

    Your flow should be similar to the following:

    Snag_10fb095e.png

    Note the expression in the Apply to each loop. Please try this in place of the values from Parse JSON:

    snag_72787c3 (2).png

    snag_7289e92.png

    See: How to send Microsoft Forms file uploads to an Approval workflow using Power Automate

     

    Ellis

  • Community Power Platform Member Profile Picture
    on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    The rest is as seen in prior replies

     

    waterguy1_0-1673729134894.png

     

  • Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    Please share the entire flow, starting from the When a new response is submitted trigger.

     

    Ellis

  • Community Power Platform Member Profile Picture
    on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    I've used both the above and the JSON block as seen in my screenshots. Both options lead to the same error.

     

  • Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    Hi  @Anonymous,

     

    In the Apply to each 7 loop, make sure that the you have used the json function. The expression  “wraps” the dynamic content for the Upload your file question inside a json function as shown in the tutorial:

     

    snag_abffcba.png

     

     

    And the Get fie metadata should use the following expression (we aren't using the Parse JSON action so we can select the properties we need): 

     

    items('Apply_to_each_7')?['id'] 

    image-1.png

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

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    When trying that solution, I receive an error stating that the file cannot be found.

     

     

    waterguy1_1-1673467188644.png

     

    waterguy1_0-1673467151989.png

     

  • Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Trying to take attachment from Forms and inserting into Approvals

    Please see the following:

    How to send Microsoft Forms file uploads to an Approval workflow using Power Automate


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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow