cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Responsive Resident
Responsive Resident

Choices from single line of text from SharePoint?

Hi,

 

I'm trying to use the Choices() function to pull unique choices from a SP list column. The column has unique single line of text values.

 

I tried Choices('ESN Ticket Tracker'.Status), but this results in an error. "Invalid Arguments".

 

Any help is appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions

You will need to create a collection of those 4000+ records on OnStart property of the app. Then use the same formula i gave you on that collection. Because Distinct is not delegable function and it will only work if you have less than 2000 records

View solution in original post

3 REPLIES 3
zmansuri
Super User
Super User

Item Property of DropDown or ComboBox:

Distinct('ESN Ticket Tracker',Status).Result

dlprentice
Responsive Resident
Responsive Resident

This works, but my list is 4000+ items so not every unique status comes through 😞

You will need to create a collection of those 4000+ records on OnStart property of the app. Then use the same formula i gave you on that collection. Because Distinct is not delegable function and it will only work if you have less than 2000 records

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,992)