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 / Canvas App replace new...
Power Apps
Unanswered

Canvas App replace new record button with upload attachment and create the record at the same time

(0) ShareShare
ReportReport
Posted on by 26

On canvas "NewRecordAddIcon" would like to replace the "+" new record to be an upload of an attachment into dataverse table document file attachment column and create the record at the same time into the form i.e.

DouglasR_0-1711659575743.png

 

I have the same question (0)
  • Shashank Bhide Profile Picture
    944 Moderator on at

    Convert the file data to base64 and then send the entire information to a power automate, the power automate can possibly do this in one step or two steps (create record, update file )  

     

    https://www.youtube.com/watch?v=bIne3DD3HAg

     

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @DouglasR ,

    There is a control in Canvas Apps already to "Add a Picture" which you could use to upload the picture to the form and then utilize a patch statement like the one located in this post to save the image with the dataverse table directly.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Patching-a-Dataverse-Image-column/td-p/2319400 

  • Doug Randall Profile Picture
    26 on at

    Thank you for the info although I am still unsure after I create the button and create new power automate flow --> File --> what formula or expression to pass the uploaded file i.e.

    DouglasR_0-1712235985612.png

     

    Thank you for the link it was helpful in general.   Although, I understand I need to pass it to either some site that does base64 conversion or there is already an operation in power automate to do this conversion, which one? then I think I can store it in the dataverse table column.  Also how will the button also create the record new during the same button function call.

     

     

  • Doug Randall Profile Picture
    26 on at

    Hi Drew,

     

    I would like to pass a pdf file rather than an image.  Would this still work for that type of column field in the table?  

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard