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 / setting a variable bas...
Power Apps
Answered

setting a variable based on lookup wont work

(0) ShareShare
ReportReport
Posted on by

hi i have two list from SharePoint ,requests and employees list,i have powerapps form with data source of requests list inside form i have two custom card with items being

 

 

 employees.'full name'

 

 

 for both of them im trying to update a field in my request sharepoint list  form requests form by setting the onselect and onchange of both custom drop down to 

 

 

Set(send_dep,LookUp(employees,employees.'full name'=Dropdown2.SelectedText,department))

 

 

 but i have nothing the variable apparently have value of none no how matter what i do 

Request list 

thin_paper_0-1608772956046.png

employees list 

thin_paper_1-1608772983497.png

the dropdown i talked about it also i get delegation warning how do i solve  

the text input that i apply the value in 

thin_paper_2-1608773059249.png

thanks

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @Anonymous ,

    You did not include the Items of the drop-down, but I will assume it is based on the 'full name' column in employees.

    If so, this should be Delegable

    Set(
     send_dep,
     LookUp(
     employees,
     'full name'=Dropdown2.Selected.'full name'
     ).department
    )

    You also need the code in the OnChange (not OnSelect)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard