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 / select Id column in va...
Power Apps
Unanswered

select Id column in variable when select name from dropdown

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

 

I have two entity Chemical and Lab and have two dropdown. Chemical table have (Chemical_Id and Chemical Name) and  Lab table have (Lab_Id and Lab_Name).

dropdown1 showing Chemical name and dropdown2 showing Lab_Name.

Here I want to set Chemical_Id into variable(varchemical) when I select Chemical_Name from dropdown1.

and I want to set LAB_Id into variable(varLab) when I select LAB_Name from dropdown2.e

and both variable will be send to Secondscreen on button click and  both variable will be use to filter collection(chemicalorder).

 

Please suggest.

 

Regards,

Lalit Kadam

Categories:
  • eka24 Profile Picture
    20,925 on at

    Here I want to set Chemical_Id into variable(varchemical) when I select Chemical_Name from dropdown1.

      Set(varChemical_Id ,LookUp(Chemical,Chemical_Name=Dropdown.Selected.Value,Chemical_Id)

    Then use the variable: varChemical_Id

     

    I want to set LAB_Id into variable(varLab) when I select LAB_Name from dropdown2

      Set(varLAB_Id ,LookUp(Lab,LAB_Name=Dropdown.Selected.Value,LAB_Id)

    Then use the variable: varLAB_Id

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

     

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    set Dropdown1.Item: Chemical

    set Dropdown2. Item: Lab

    set Button.OnSelect: Set(varchemical, Dropdown1.Selected.Chemical_Id); Set(varLab, Dropdown2.Selected.LAB_Id)

     

    Then you are able to apply both variables into Filter function.

    Sik

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard