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?
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
//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.
@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
Check out new user group experience and if you are a leader please create your group
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.