cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Highlighted

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

Highlighted

Tested and it works!

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

 

^_^

ProNewbie.

Highlighted

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

Highlighted

Ok, thanks for the tip also.

 

ProNewbie.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,852)