cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
SkiDK
Solution Sage
Solution Sage

Hi @Anonymous 

 

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.

View solution in original post

1 REPLY 1
SkiDK
Solution Sage
Solution Sage

Hi @Anonymous 

 

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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,285)