cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abu_has03
New Member

Query SharePoint list and assign value to variable

Hello All,

 

I am trying to do the below.

 

v_name_category:Filter('Category list', CategoryCode = category.Text).category

 

Filtering Sharepoint list "Category list' and assining the value in category column to the variable. Category column has unique value, will return one value.

 

I am passing v_name_category variable to the nextscreen. When i am assigning the variable to textbox in next screen, i am getting error "The property expects Text values, but this rule produces incompatiable table values".

 

Thanks for your help !!

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

Try setting the variable using the first function with the filter. It should look something like this:

 

Set(v_name_category, First(Filter('Category list', CategoryCode = category.Text)).category)

Then you would just use v_name_category in your text box.

 

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Jeff_Thorpe
Super User
Super User

Try setting the variable using the first function with the filter. It should look something like this:

 

Set(v_name_category, First(Filter('Category list', CategoryCode = category.Text)).category)

Then you would just use v_name_category in your text box.

 

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Thanks it works.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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