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

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard