Announcements
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.
@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
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.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 221 Super User 2026 Season 2
WarrenBelz 188 Most Valuable Professional
Mohsin Ali 120