Announcements
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.
Hi @JF000001 ,
Please try:
Patch( DataSource, BaseRecord, { ChoiceColumn:Filter( Choices(DataSource.ChoiceColumn), Text(Value) in TheCollection.ColumnName ) } )
Best Regards,Bof
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.
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.
WarrenBelz 345 Most Valuable Professional
11manish 207 Super User 2026 Season 2
Mohsin Ali 177