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 / Create a record in Dat...
Power Apps
Unanswered

Create a record in Dataverse table using canvas screen data

(0) ShareShare
ReportReport
Posted on by

Hi Everyone 

Below values are added by me to canvas screen and doesn't belong to any table in dataverse (its not also a form). I need to store this data upon button click in a a table I have already created called "Orders" and it contains columns: ID, Total Price, Address, Note and No cutlery.

So is there any function can be used to take this data, create a new record in that table and store the data in based on customized mapping between the labels and columns ? 

Thanks in advance

 

Bayan_0-1644823630050.png

 

Categories:
I have the same question (0)
  • kanchankolekar Profile Picture
    69 on at

    Hello @Anonymous 

    You can create a new record in the table by using Patch() and SubmitForm(). If you are using form then you can use a SubmitForm(FormName) to store records in the table. On another hand, if you are using different controls to add a value to the table you can use Patch(Orders, Default(Orders),{ID: Textinput.Text, TotalPrice: Textinput.Text}) In this way.

    Hope this is helpful for you 

    Thank you

     

  • Community Power Platform Member Profile Picture
    on at

    @kanchankolekar Hi 
    Thank u for your reply. but is not Default(Orders) is used on update record? I mean the documentation syntax says: Default(DataSource), while order table here is not the source of this data. am I wrong ?

  • Verified answer
    kanchankolekar Profile Picture
    69 on at

    Hello @Anonymous  With Default(Orders) we can create a new record instead of that we can use First() Function to match condition data that you want to update

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    It worked perfectly dear ! Thanks a lot 😀

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard