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 Apps
Unanswered

sharepoint list

(0) ShareShare
ReportReport
Posted on by 38

i have two identical sharepoint list ,all the columns are same . i want to submit the edit form to these independent sharepoint list simultaneously. what can be changed in the on select of the submit button so that it submits the edit form simultaneously to the both of these sharepoint list

 

Categories:
I have the same question (0)
  • turnerj3 Profile Picture
    2,039 on at

    As far as I know the edit form is tied to the one data source.
    You could patch the data to the other list right after the submit form in the onselect, but you would have map the columns and values in the patch.

     

  • tmpandc Profile Picture
    38 on at

    can you give me an example code snippet on that,both the lists have exactly the same coloumns anly the name is different

     

  • turnerj3 Profile Picture
    2,039 on at

    OnSelect=
    SubmitForm(Form1);

    Patch(2nd list, Defaults(2nd list),{Title:data card value.Text, 2ndColumnName:data card value, etc})

  • tmpandc Profile Picture
    38 on at

    if there is like fourty coloums in the second sheet i have to do for all the coloums and match it with the data card

     

  • turnerj3 Profile Picture
    2,039 on at

    Wait on that. Try this first
    Instead, after submitform

    Refresh(1stlist);

    Patch(2nd list, 1st list)

  • turnerj3 Profile Picture
    2,039 on at

    use this Patch instead

     

    Patch( list2, ForAll( Sequence(CountRows(list1)), Defaults(list2) ), list1 );

  • tmpandc Profile Picture
    38 on at

    its returnig  error shared a photo with this

    Untitled.png
  • turnerj3 Profile Picture
    2,039 on at

    @tmpandc ,

    I have tried about everything with no luck on total simplification.

    This is as easy I can find to do it. Map column to column instead of column to datacard.

    Patch(List2,Defaults(List2),{Where:Last(List1).Where,Glcode:Last(List1).Glcode})

     

    Using last only patches over the last entry from the first list.

     

    I hope this helps.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard