web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Patch Data to a...
Power Apps
Unanswered

How to Patch Data to all my SharePoint list From from One Power Apps page

(0) ShareShare
ReportReport
Posted on by 272

I have three List 

1. Sales

2 . Commercial

3. Merger Sales and commercial

 

Sales and Commercial have a All the Fields common. 

And Merger Sales and commercial is a updated list which merge Sales and commercial together. 

 

Their is a column as Customer Response On Phone 

 

so i patch this code : -

 

Patch('Merger Sales and commercial',LookUp('Merger Sales and commercial', ID=DataTable6.Selected.ID),{'Customer Response Over Phone':TextInput7_3.Text});
Patch('Sales', LookUp('Sales', ID=DataTable3.Selected.ID),{'Customer Response Over Phone':TextInput7_3.Text});
Patch('Commercial',LookUp('Commercial', ID=DataTable6.Selected.ID),{'Customer Response Over Phone':TextInput7_3.Text});
Reset(TextInput7_3);

 

but the issues is its not patching the Values in its corresponding ID  its is adding the value in first value.

 

B8_0-1676021606723.png

like if i have to add in A527 its adding that in A25 all the time.

Categories:
  • WarrenBelz Profile Picture
    156,770 Most Valuable Professional on at

    Hi @B8 ,

    You can shorten the Patch to this

    Patch(
     'Merger Sales and commercial',
     {ID: DataTable6.Selected.ID},
     {'Customer Response Over Phone': TextInput7_3.Text}
    );
    Patch(
     'Sales', 
     {ID: DataTable3.Selected.ID},
     {'Customer Response Over Phone':TextInput7_3.Text}
    );
    Patch(
     'Commercial',
     {ID: DataTable6.Selected.ID},
     {'Customer Response Over Phone':TextInput7_3.Text}
    );
    Reset(TextInput7_3);

    but that does not explain the result you are getting. I noticed you are using the same ID for two patches (first and last) - I am sure this is not correct. Also if you put this on a Label

    DataTable6.Selected.ID & " - " & DataTable3.Selected.ID

    do you see the IDs you expect for the first two ?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard