cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

Dropdown default property from a choice column in sharepoint

Hello, I've got a PowerApp with a dropdown in it and I'm trying to put a field of a row inside the Default property of this dropdown but then I gave up and that's why I'm here asking for help. D=

The column I'm trying to reach is a Choice type column in SharePoint.

 

This is the formula I managed to make so far after 4hours of attempts approximately:

First(Filter(
NameOfSharePointList;

columnTitle = "0001"));

{columnLanguage: {Id: dropdownLanguage.Selected.Id;

Value: dropdownLanguage.Selected.Value}})

 

From what I know I need to put a Filter function and to reach a specific column in a specific row, but nothing I've tried so far works.

 

Thanks, ProNewbie.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User II
Dual Super User II

@ProNewbie 

 

To get the data from the choice column type

 

use Lookup(NameOfSharePointList, columnTitle = "0001").columnLanguage.Value (this will give you the text in the choice field)

 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

Hi @ProNewbie 

 

 Lookup(NameOfSharePointList, columnTitle = "0001").columnLanguage.Value

 First(Filter(NameOfSharePointList, columnTitle = "0001")).columnLanguage.Value

 

Both will work

However performance wise Lookup is better

Lookup only returns 1 record

Filter returns a collection and hence we have to do First after that

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

4 REPLIES 4
Dual Super User II
Dual Super User II

@ProNewbie 

 

To get the data from the choice column type

 

use Lookup(NameOfSharePointList, columnTitle = "0001").columnLanguage.Value (this will give you the text in the choice field)

 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

Tested and it works!

Thank you so much, I completely forgot about the LookUp() function.

 

^_^

ProNewbie.

Hi @ProNewbie 

 

 Lookup(NameOfSharePointList, columnTitle = "0001").columnLanguage.Value

 First(Filter(NameOfSharePointList, columnTitle = "0001")).columnLanguage.Value

 

Both will work

However performance wise Lookup is better

Lookup only returns 1 record

Filter returns a collection and hence we have to do First after that

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

Ok, thanks for the tip also.

 

ProNewbie.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,938)