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 / Two Lists - 1-to-many ...
Power Apps
Answered

Two Lists - 1-to-many question

(0) ShareShare
ReportReport
Posted on by 100

Can I have a form take the unique ID from a list to create sub-ID’s on another list?

 

 first list: 1,2,3,….

 

 Second list: 1a, 1b, 1c, 2a, 2b, 3a, 4a, 4b, 4c, 4d.

 

 Each tired back to the first list. 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @PBInonpro 

    Add a number column to the second list and call it parentid.

    Assume you have  Gallery1 to select an item from the first list and a form, Form1 for adding child items to the second list. The Data source for the form will be list2 and the Item property will be Gallery1.Selected

    Change the Update property for the parentid card to Gallery1.Selected.ID and hide the card so the user can't access it.  For more details on how to set up your lists, see my blog post here

    Apps-Community-Blog/Relational-Database-Principles-and-PowerApps-Step-3-Keys-and/ba-p/188640?search-action-id=205962013358&search-result-uid=188640 
    and the one after it on the implementation

    https://powerusers.microsoft.com/t5/Power-Apps-Community-Blog/Relational-Database-Design-fundamentals-Implementing-a-One-to/ba-p/200521?search-action-id=205962013358&search-result-uid=200521 

  • PBInonpro Profile Picture
    100 on at

    I accepted the solution without testing as it made sense. 

     

    But I am getting this error: "Invalid Formula. Expected a value compatible with 'DataSource' on the 'item' of the form. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @PBInonpro

    Make sure your item property in the LookUp matches the datasource of your form which should be list2. LookUp(list2, parentid = Gallery1.Selected.ID)

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard