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

All email attachments are corrupt

Hi, I'm trying to set up a simple flow which will take uploaded files from a MS Form and then attatch them with the email which is sent out when Form is submitted .

 

This is working but all the attachments are corrupt / invalid.

 

Can anybody point me in the right direction please?

 

Images below of flow

 

 
 

2020-04-01 12_40_59-Edit your flow _ Power Automate.png2020-04-01 12_42_43-Edit your flow _ Power Automate.png

 

In the Parse JSON i have

{
    "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"
        ]
    }
}
1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @LiamR89 ,

 

If the form is not a group form, please check this similar thread and see if it helps:

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

 

If it is a group form, please refer to the solution in the following method and replace Get file content action(OneDrive for Business connector) in the above method with Get file content using path(SharePoint Online connector).

 

https://powerusers.microsoft.com/t5/Building-Flows/O365-Group-Form-responses-with-attachments-to-Sha...

 

Please take a try and feel free to let us know if the issue still exists.

 

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

2 REPLIES 2
ChristianAbata
Super User II
Super User II

hi @LiamR89  the error could be becouse you are using the content from another file.

 

Remenber that when you parse json your form answer you have a propertie call Link, that link is your file, so you need to frist upload that file to a sharepoint library or one drive the get that content file, to send it as attachment.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
v-bacao-msft
Community Support
Community Support

 

Hi @LiamR89 ,

 

If the form is not a group form, please check this similar thread and see if it helps:

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

 

If it is a group form, please refer to the solution in the following method and replace Get file content action(OneDrive for Business connector) in the above method with Get file content using path(SharePoint Online connector).

 

https://powerusers.microsoft.com/t5/Building-Flows/O365-Group-Form-responses-with-attachments-to-Sha...

 

Please take a try and feel free to let us know if the issue still exists.

 

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,172)