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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to create multiple...
Power Apps
Unanswered

How to create multiple records in a Sharepoint List from 2 other Lists

(0) ShareShare
ReportReport
Posted on by 195

Hi all,

On a Canvas App I'm trying to create multiple records on a Sharepoint List. On the screen I have a gallery pointing to one list with multiple records. For every item in that gallery I want to add the ID to another list, along with a variable (already known). I've attached a picture essentially explaining it. I've looked at creating a collection with a ForAll function embedded, but can't seem to get the syntax to work. Has anyone got a simple solution to this please?

 

Many thanks.

Paul

Categories:
I have the same question (0)
  • Verified answer
    BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    ForAll should be the way to go. I'm not sure what syntax you had, and I'm not sure I completely understand what you are trying to end up with, but something like this should work:

    ForAll(Table2, Patch(CombinedTable, { Table1_ID : Table1.ID, Table2_ID : Table2.ID }))

  • PJBruen Profile Picture
    195 on at

    Excellent. Many thanks. 
    Needed a little tweak, but works now. 

    Regards 

    paul

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard