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.

Thanks it works.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (3,722)