web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Query SharePoint list ...
Power Apps
Answered

Query SharePoint list and assign value to variable

(0) ShareShare
ReportReport
Posted on by 4

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

Categories:
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    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.

     

     

  • abu_has03 Profile Picture
    4 on at

    Thanks it works.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard