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
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,153)