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 / ForAll comboBox patching
Power Apps
Answered

ForAll comboBox patching

(0) ShareShare
ReportReport
Posted on by 59

Hey PowerApps community,

 

I'm facing a challenging issue with my application, and I'd appreciate your help. Let me break down the steps involved to give you a better idea of the situation. I have a ComboBox where you can select multiple brands, and a Dropdown menu that is filtered based on the ComboBox selection to display the stores associated with the selected brand(s). In the Dropdown, you can also select multiple stores. After this, I want to patch my Dataverse table with the correct brand and store information linked to it. Can anyone guide me on how to achieve this?

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @LoopinG2023 ,

     

    It seems there are two many-to-many relationships of this table? If so, you need to use Relate function:

    Set(varNew,Patch(Table,Defaults(Table),{Name:"..."}));ForAll(ComboBox1.SelectedItems As CB1,Relate(varNew.ToManyTable,CB1));ForAll(ComboBox2.SelectedItems As CB2,Relate(varNew.ToManyTable,CB2))

     

    Best regards,

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 393

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 271 Super User 2025 Season 2

Last 30 days Overall leaderboard