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 / Many to Many - Select ...
Power Apps
Unanswered

Many to Many - Select Multiple Lookup Items in Combobox

(0) ShareShare
ReportReport
Posted on by 257

Hello, I'm trying to learn and understand the many to many function as I am trying to use a combobox to select multiple lookup records from a second table and save those multiple entries to my lookup column. 

 

Maybe this can't be done this way and maybe there is a workaround that I can do?


Essentially I have a table that tracks project information, and I have other tables that are for Samples and Quotes. I want to be able to relate multiple Samples and multiple Quotes to one Project. Then when I am in my Project, be able to click a Listbox or Gallery of those Samples/Quotes which will take me to the Samples/Quotes Form screen (I already achieved this with a Listbox with the single-selection of Sample/Quote).

 

picture of my current boxes (after I save the form, it only saves the first selection)

MechEng2013_0-1692806360012.png

 

Is there a way to do this with the lookup column, or will I have to do a workaround, for example concatenating the IDs into a text column, and then performing lookups to those ID's to get the functionality I want?

 

Thanks!

Categories:
I have the same question (0)
  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @MechEng2013 ,

     

    May I Ask what data source you have used?

    Let us assume that is SharePoint.

     

    We made a Sample for you.

    vhanytianmsft_0-1692931843668.png

    OnChange of DataCardValue:

    ClearCollect(Col1,DataCardValue2.SelectedItems.Id)

    vhanytianmsft_1-1692931933266.png

     

    Update of DataCard:

    Col1

    vhanytianmsft_2-1692932007776.png

     

    Insert a Button for Submit a form.

    vhanytianmsft_3-1692932068038.png

    vhanytianmsft_4-1692932090426.png


    Hope this will help you,

    Best Regards,
    Tina

     

  • MechEng2013 Profile Picture
    257 on at

    Actually, I'm using Dataverse. Does that change much? I'm not familiar with Sharepoint lists...
    Thanks

  • MechEng2013 Profile Picture
    257 on at

    I have tested this, as I said I'm using Dataverse, and it does not work. Update field of DataCard returns error: "Expecting Record Value" - Col1 returns a table.

  • MechEng2013 Profile Picture
    257 on at

    Update to where I'm at now. I've researched the world of Many to Many relationships and have found good information out there. I'm having trouble getting my app to work as examples are shown however and I might be trying to do too much. Basically I want to be able to edit these relationships while in an Edit Form, and maybe that's not possible. I also have to lookup the record that I'm currently selecting (I use a variable to store the record) in order for the change in relationship to show in the new gallery.

     

    I have tried showing the relationships in a gallery, in a listbox, and in a datatable. Reasons were that I was trying to put it into my edit form inside of a datacard. Gallery is the only one that seems to work OK, but I might just need to put it on a separate screen to do that - which I am OK with, but I still want to be able to at least display the relations in my form. Listbox seems to work, except it does not show the text labels of the records!! ugh

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard