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

Update 2 tables from the same field

Here's the situation:
I have a single form in PowerApps that is linked to an Excel table, the goal is to also upload another Excel table from the same field. Can anyone help me do this ? I'm used to variables manipulations.

TL;DR: The goal is to update 2 different Excel tables from the same field.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
SkiDK
Level 8

Re: Update 2 tables from the same field

Hi @DonutsSauvage 

 

You could use Patch for this. I suppose you have a button to push data into the excel?

 

In that case, you could do next:

 

  Button: OnSelect =

Patch (
    ExcelTable1,
    Defaults( ExcelTable1),                             
    {
        columnName1: DataCardValue1.Text,
        columnName2: DataCardVakueé.Text,
        ...
    }
);
Patch (
    ExcelTable2,
    Defaults( ExcelTable2),                             
    {
        columnName1: DataCardValue1.Text,
        columnName2: DataCardVakueé.Text,
        ...
    }
);

 

You just push the data twice with a Patch to different tables on one trigger. Using a SubmitForm here does not work since it will only push the data to its datascource and only one can be connected to a Form.

 

I hope this helps.

1 REPLY 1
Highlighted
SkiDK
Level 8

Re: Update 2 tables from the same field

Hi @DonutsSauvage 

 

You could use Patch for this. I suppose you have a button to push data into the excel?

 

In that case, you could do next:

 

  Button: OnSelect =

Patch (
    ExcelTable1,
    Defaults( ExcelTable1),                             
    {
        columnName1: DataCardValue1.Text,
        columnName2: DataCardVakueé.Text,
        ...
    }
);
Patch (
    ExcelTable2,
    Defaults( ExcelTable2),                             
    {
        columnName1: DataCardValue1.Text,
        columnName2: DataCardVakueé.Text,
        ...
    }
);

 

You just push the data twice with a Patch to different tables on one trigger. Using a SubmitForm here does not work since it will only push the data to its datascource and only one can be connected to a Form.

 

I hope this helps.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 82 members 4,521 guests
Please welcome our newest community members: