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 Apps / Add Picture and Attach...
Power Apps
Answered

Add Picture and Attachment at the same time.

(0) ShareShare
ReportReport
Posted on by 583

All,

 

What I'm trying to do it use the Add Picture control to add an image. Then also put that image in an attachment card in a new form. I need the attachment to go to my SharePoint list but I also need the UploadedImage to send in an email. I thought I found a solution here Solved: Capture Image and Save as Attachment - Power Platform Community (microsoft.com) but when I try this it gives me an error on the attachment card about ID required.

 

Anybody got any ideas?

 

Thanks

Categories:
I have the same question (0)
  • PowerAppNewbie2 Profile Picture
    40 on at

    Can you share your "code" that is producing the error? I've got a picture app where I go via a collection (as multiple pics) to the attachment. No further ID is required. 

  • StephenGW Profile Picture
    583 on at

    @PowerAppNewbie2 

     

    For the AddMediaButton1 control for OnSelect = ClearCollect(colImage,{Name:AddMediaButton1.FileName,Value:AddMediaButton1.Media})

     

    The for the attachment card DataCardValue33 Items = colImage

     

    When trying to submit I get an error message that appears to be an error message in the card. 

    StephenGW_0-1627044076102.png

    I'm happy to share whatever can help if you can tell me specifically where to look. I couldn't find the Parent.Error anywhere to tell more details. Here is what tells that text label to be visible. 

    StephenGW_1-1627044191689.png

     

  • PowerAppNewbie2 Profile Picture
    40 on at

    Just checking that's a typo here and not in the app you mean 32 instead of 33?

     

    Also do you have any hidden mandatory fields in your form?

  • StephenGW Profile Picture
    583 on at

    @PowerAppNewbie2 

     

    Yes that was a typo here.

    StephenGW_0-1627054120090.png

    I do have a couple hidden fields that are filled in by a function but they are not required fields. I double checked and required is false for both.

  • StephenGW Profile Picture
    583 on at

    @PowerAppNewbie2 

     

    I've been thinking about this. I have 4 different data sources and I use a Switch to determine which source is referenced. Like this From DataSource = Switch(ddLocation_1.Selected.'Locations (Locations)',"USA",'USA Audits',"Canada",'Canada Audits',"South America",'South America Audits',"Other",'Other Audits') Do you think this could be the problem? All the others work this way and if I just use the attachments card it works fine.

     

    Thanks

  • StephenGW Profile Picture
    583 on at

    @PowerAppNewbie2  or anybody else have any ideas as to why I still can't get this to work?

  • StephenGW Profile Picture
    583 on at

    Or another alternative. Can anybody help me to add an attachment from the attachment card to an email using the MAIL connector? I can't use the Outlook connector and I cannot figure out how to add the attachment from the card to an email. That is my whole reasoning for wanting to use the add picture control along with the attachment card.

     

    Im open to this as a solution as well.

     

    Thanks

  • PowerAppNewbie2 Profile Picture
    40 on at

    @StephenGW  I'm still stunned why it is not working as I'm doing the same. I collect the picture and then have the Item set to the collection name and it's working.. The ID error is baffling me. Have you tried checking if there are any hidden mandatory fields in your SP list? and if not just done the old delete the form and reinsert it again? 

  • StephenGW Profile Picture
    583 on at

    @PowerAppNewbie2 

     

    I have checked and there are only 2 hidden fields and they are not required fields. I have not tired deleting the form yet. I might have to do that and then work forward with the other form changes until I find what is breaking it. I think I will go this route and report back. Thanks

  • StephenGW Profile Picture
    583 on at

    @PowerAppNewbie2 

     

    I created a new form with no changes other than making the add picture control clearcollect and then change the attachment datacard to get the image with colImage and then change the form to DefaultMode=New and I still get this error. Man this is frustrating. Searching the forum for Field ID is not helping either. Hopefully someone might have some additional ideas I can try.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard