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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can you send two forms...
Power Apps
Unanswered

Can you send two forms of attachments to email?

(0) ShareShare
ReportReport
Posted on by 12

Hi I'm trying to send photos that I have in a collection "CameraPics" and I also want to send the PenInput as an image as attachments?

 

I thought I could use {attachments: CameraPics & Table({Name:"Signature.jpg",ContentBytes:Signature.Image, '@odata.type':""})}

 

But it doesn't like this, so I'm trying to understand if there is a way to achieve this?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Ashers82 ,

    Could you please share a bit more about your CameraPics collection?

    Does your CameraPics collection have the following data structure?13.JPG

     

    If you want to send an email with the CameraPics collection as attachments, your CameraPics collection must be above data structure.

    If your CameraPics collection has above data structure already, you could consider merge your CameraPics collection and the PenInput image data into single one Collection, then send the merged collection as the attachments of the meail.

     

    I have made a test on my side, please take a try with the following workaround:14.JPG

     

    15.JPG

    Set the OnSelect property of the "Collect" button to following:

    Collect(CameraPics, {Name: "Picture1.jpg", ContentBytes: AddMediaButton1.Media, '@odata.type':""})

    On your side, you may type:

    Collect(CameraPics, {Name: "Picture1.jpg", ContentBytes: Camera1.Photo, '@odata.type':""})

    Set the OnSelect property of the "Send Email" button to following:

    Office365.SendEmailV2(
    "Test1@Wicren.onmicrosoft.com",
    "PowerApps Test",
    "PowerApps Test",
    {
    Attachments: Collect(CameraPics, {Name: "Signature.jpg", ContentBytes: PenInput1.Image,'@odata.type':""})
    }
    )

    On your side, you should type:

    Office365.SendEmailV2(
     "Your Email Address",
     "Subject Text",
     "Body Test",
     {
     Attachments: Collect(CameraPics, {Name: "Signature.jpg", ContentBytes: Signature.Image,'@odata.type':""})
     }
    )

    Note: Please make sure your CameraPics collection has the data structure as the first screenshot I preovided above.

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard