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 / Creating a collection ...
Power Apps
Answered

Creating a collection with Choice field from Dataverse

(0) ShareShare
ReportReport
Posted on by

I am trying to create a collection for a dropdown that contains information from a choice field called "Targeted Milestone"  which is  in a Dataverse source document called "Outstanding Claims" and then add a "All" item component to the collection.

 

The collection is giving me an error and not creating the collection and I am not sure why?

 

ClearCollect(colMile,{Value: "All"});
Collect(colMile,Choices('Outstanding Claims'.'Targeted Milestone (Dropdown)'))

 

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

    Hi @JM_Jackson ,

     

    I did a sample for you.

    ClearCollect(colMile,{Value:"All"});Collect(colMile,RenameColumns(ShowColumns(AddColumns(Choices(TestL16.Test_Choice),"Value2",Text(Value)),"Value2"),"Value2","Value"))

    // Test_Choice is the choice column of the TestL16 table in dataverse.

     

    Best Regards,

    Wearsky

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 432

#2
Valantis Profile Picture

Valantis 362

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard