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 / Microsoft Form respons...
Power Automate
Answered

Microsoft Form response with attachment (PDF) to email.

(0) ShareShare
ReportReport
Posted on by 58

Hi All,

 

I Need help, I've created a form and getting form response with attachment over the email but somehow not able to get attachment in pdf format rather getting in file format, can anyone please help me. 

 

Response Email

Jay50_1-1676322145133.png

 

Flow

Jay50_2-1676322276361.png

Jay50_3-1676322325816.png

Test form

Jay50_4-1676322536783.png

 

 

 

 

Categories:
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Jay50 ,

    Please add a suffix to the file name so that the file can be recognized in the corresponding format

    vchengfenmsft_0-1676342649264.png

     

    Best Regards

    Cheng Feng

     

  • Jay50 Profile Picture
    58 on at

    Hi @v-chengfen-msft ,

     

    Thanks for your response,

     

    I changed suffix as suggested but not able to open the pdf.

    Jay50_1-1676343076020.png

     

    Jay50_2-1676343226522.png

     

    Jay50_0-1676343028633.png

    I can open link and that works but cannot open pdf, any idea what can be the reason?

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

    Hi @Jay50 ,

    The content of the file you obtained is incorrect.
    Form Submitted files will be saved in OneDrive, we can get the content of the file by id, and then put it into an array

    vchengfenmsft_0-1676343258541.png

    like this:

    vchengfenmsft_1-1676343473263.png

     

    Best Regards

    Cheng Feng

     

     

  • Jay50 Profile Picture
    58 on at

    Hi @v-chengfen-msft ,

     

    Thanks for suggestion, Unfortunately, getting the same issue, not able to open the pdf directly.

    Jay50_0-1676345042070.png

    Jay50_1-1676345068808.png

     

     

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

    HI @Jay50 ,

    This problem does not occur in my scenario.
    Could you show a screenshot of the complete flow?
    Or try uploading another PDF for testing.

     

     

    Best Regards

    Cheng Feng

  • Jay50 Profile Picture
    58 on at

    Hi @v-chengfen-msft ,

     

    I tried another pdf , same issue. I have attached complete flow, please let me know if I have done anything wrong.

     

    Jay50_0-1676346841555.png

    Parse JSON
    {
        "type": "array",
        "items": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "link": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "type": {},
                "size": {
                    "type": "integer"
                },
                "referenceId": {
                    "type": "string"
                },
                "driveId": {
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "uploadSessionUrl": {}
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }
     
    Jay50_3-1676347028456.png

     

    Jay50_4-1676347066964.png

     


     

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

    Hi @Jay50 

    Please modify this part

    Like this:

    vchengfenmsft_0-1676347579437.png

     

     

    Best Regards

    Cheng Feng

  • Jay50 Profile Picture
    58 on at

    All Good, can open now. Thanks a lot. Appreciate your help.

  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Jay50 ,

    Glad to help you solve the problem

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Cheng Feng

  • Jay50 Profile Picture
    58 on at

    Hi @v-chengfen-msft ,

     

    Can you suggest what I am doing wrong here as I am writing condition to check if Form response have attachment, but it is setting to False every time regardless of attachment? 

     

    I tried true, 'True', Bool('True'), Bool('true'), Null but nothing working as expected. 

    Jay50_0-1676409935491.png

     

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
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard