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 / How to populate a Choi...
Power Apps
Unanswered

How to populate a Choice Column of a Dataverse table using a Patch with values found in a Collection

(0) ShareShare
ReportReport
Posted on by 36

I have some values in a Collection, corresponding to the actual text values of a choice column found in Dataverse. How can I update my choice column using a patch, with the values found in my collection.

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

    Hi @JF000001 ,

     

    Please try:

     

    Patch(
     DataSource,
     BaseRecord,
     {
     ChoiceColumn:Filter(
     Choices(DataSource.ChoiceColumn),
     Text(Value) in TheCollection.ColumnName
     ) 
     }
    )

     

    Best Regards,
    Bof

  • JF000001 Profile Picture
    36 on at

    Thank you @v-bofeng-msft  This doesn't appear to be working. Here is my current code. I have a collection being populated with the choice values for several records. I wish to populate another table with these corresponding choices as seen below. Thanks again.

     

    ClearCollect(MyCollection, ShowColumns(ATable, "MyColumnHavingTheChoicesAsText"));
    ForAll(MyCollection,Patch(MyTableToPatch, Defaults(MyTableToPatch), {MyChoiceColumn: MyColumnHavingTheChoicesAsText}));

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

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard