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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard