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 / How can I patch captur...
Power Apps
Unanswered

How can I patch captured photo to image field in Microsoft Dataverse table?

(0) ShareShare
ReportReport
Posted on by 9

I have a Dataverse Table named "Expenses". There's a "ReceiptImage" image type field.

I have a Camera Control, and a button to save the image to collection named "CapturedPhotos". See the collection structure below

Rena_Yu_0-1659706470847.png

How can I use patch function to add all photos to the dataverse table?

The current formula I am trying to use : Patch(Expenses,First(Filter(Expenses,ExpenseID=PerExpensesGallery.Selected.ExpenseID)),{ReceiptImage:Capturedphotos.Photo})

But the part in red above gives me error. 

What's the correct way to achieve this?

I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @Rena_Yu, Try this

     

    Patch(Expenses,First(Filter(Expenses,ExpenseID=PerExpensesGallery.Selected.ExpenseID)),{ReceiptImage:{Full:Capturedphotos.Photo,Value:Capturedphotos.Photo}})

     

     

    Regards,

    Ahmed

    If my reply helped you, please give a 👍. And if it has solved your issue, please consider a 👍 & Accepting it as the Solution to help other members of the community find it more.

    My Blog: www.powerplatformplace.com

  • Rena_Yu Profile Picture
    9 on at

    Hi Ahmed, 

     

    Really appreciate your reply. I tried that but get the error below. It seems the formula recognize my Capturedphotos.Photo as a table but not a record?

    Rena_Yu_0-1659742252775.png

     

    Thanks,

    Rena

     

  • Rena_Yu Profile Picture
    9 on at

    I find a blog describing the possible cause: https://powerapps.microsoft.com/en-us/blog/public-preview-of-multiple-image-attributes-in-power-apps/#:~:text=If%20there%20are%20multiple%20fields%20with%20the%20image,with%20a%20Image%20data%20type%20in%20Power%20Apps

     

    Rena_Yu_0-1659746221615.png

    "it only allows a single image when used with an Image data type field. If you want multiple images per record, use either the attachment feature or create a separate table and then create a N – 1 relationship."

     

    Currently, it can work if I use Camera1.Photo and Camera1.Stream. Maybe we should find a solution mentioned in this blog.

     

    Thanks,

    Rena

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard