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 / Unable to add All with...
Power Apps
Unanswered

Unable to add All with CDS entity option set on Model App

(0) ShareShare
ReportReport
Posted on by 4

I have created a CDS Entity with option set as column data type. It is able to show all the values in model app new or edit form, but not able to add "All" to the same dropdown or combobox. If I try to add it to collection, it shows All in one column and option set values in another column.

 

And below code is giving error

 

ClearCollect(p1,{Result:"All"});
Collect(p1, Distinct('Property Inventories','Project Name'))
Categories:
I have the same question (0)
  • Doug_Apicella Profile Picture
    45 on at

    @gaurav_sharmaif you have an option set field for a custom entity as long as that entity is added to the app select the Items property and use:

     

    choices('Name of Field')

     

    Thanks.

     

    Doug

     

    Did I answer your question? Mark my post as a solution!

    If you liked my response, please consider giving it a thumbs up

  • gaurav_sharma Profile Picture
    4 on at

    @Doug_Apicella I want to add "All Items" to the dropdown to show all records. This is not happening.

  • Doug_Apicella Profile Picture
    45 on at

    @gaurav_sharmaIf you want to add additional values you would have to build the entire collection manually specifying the optionset values each as a record and then adding the "All Items" value as well. Thanks.

     

    Doug

     

    Did I answer your question? Mark my post as a solution!

    If you liked my response, please consider giving it a thumbs up

  • gaurav_sharma Profile Picture
    4 on at

    I did. Please check my original question. I wrote that code is not working.

     

    Below code is not working. It is giving error while defining in formula bar.

     

    ClearCollect(p1,{Result:"All"});
    Collect(p1Distinct('Property Inventories','Project Name'))
     
    Or is there a way to select all values or none in dropdown or combobox control after it is populated from CDS entity optionset values? This will work too.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard