cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
neethup
Level: Powered On

Save the record in edit form as new entry

Hi..  i have connected to two datasource in my edit form.. so when i edit any record it should get to save into two tables, In one table it should go as new entry each time when i edit not like editing existing and update.. How can i do that?

4 REPLIES 4
Community Support Team
Community Support Team

Re: Save the record in edit form as new entry

Hi @neethup ,

What do you mean " connected to two datasource in my edit form"?

One edit form could only have one data source.

Do you mean that your app is connected with 2 data sources, the edit form is used to update one of them, and you want to create a new item in the other data source at the same time?

If so, try this formula:

ClearCollect(test,Form1.Updates);  //save the data in the form as a collection
SubmitForm(Form1); //submit the data to table1
Collect(table2,ShowColumns(test,"field1","field2",....))
//create a new item in table2 by using the data of this collection
(you could choose the fields that you want to update by using shwocolumns function)

Please replace table2,field1,field2 with the table names and fields name that you want to use.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
neethup
Level: Powered On

Re: Save the record in edit form as new entry

@v-yutliu-msft  Hi.. Let me try this.. Thank you so much

neethup
Level: Powered On

Re: Save the record in edit form as new entry

@v-yutliu-msft Hi.. Its writing to some field only... some fields are null in the sql table after giving the fields in showcolumns also

neethup
Level: Powered On

Re: Save the record in edit form as new entry

@v-yutliu-msft  Hi some of the fields are not getting inserted...

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Users Online
Currently online: 105 members 5,309 guests
Please welcome our newest community members: