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 create a new...
Power Apps
Unanswered

How can i create a new record by editing a existing record using PowerApps.

(0) ShareShare
ReportReport
Posted on by 15

Hi

 

By using the power app when we are entering the filed details and save it it will go to SharePoint and create a new record but now I want for an existing record if I click on edit and do some changes it should create a new line item instead of updating that existing record.

 

Categories:
I have the same question (0)
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @spanigrahi ,

     

    You can try to use Patch() to add new records to your data source.

    Patch(data soure,Defaults(data soure),{column1:value,column2:value2....})

    Please check the link below:

    Patch function in Power Apps (contains video) - Power Platform | Microsoft Learn

     

    Best Regards,

    Dezhi

  • Sanshubh Profile Picture
    512 on at

    Use the patch function to achieve that. Patch function is used to save data and update data you just open edit form and use patch function to create new entry.

     

    Here Link for it:
    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch 

  • spanigrahi Profile Picture
    15 on at

    But I have to use more than 50 columns any other easy way

  • spanigrahi Profile Picture
    15 on at

    But I have to use more than 50 columns any other easy way

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @spanigrahi ,

     

    You can save the records you want to add to a collection, and then use forAll.

    ForAll(collention,Patch(data soure,Defaults(data soure),ThisRecord))

     

    Best Regards,

    Dezhi

  • Dai_Xin Profile Picture
    41 on at

    Hi @spanigrahi ,

     

    Do you use the Edit form to create a new record or edit existing record back to your Sharepoint?

     

    If you use Edit form to create new record back to your sp list, you could consider set the OnSelect property of the "Submit" button to following formula:

    Patch(
     'Your SP List', // replace it with your SP list name
     Defaults('Your SP List'), // replace it with your SP list name
     EditForm1.Updates // EditForm1 means the Edit form name in your app
    )

     

    Hope above solution could solve your problem.

     

    Best Regards,

    Kris

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard