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 / Multiple SharePoint Lo...
Power Apps
Unanswered

Multiple SharePoint Lookup fields

(0) ShareShare
ReportReport
Posted on by 249

Hello PowerApps community. I have ran into an issue with multiple SharePoint lookup fields and am stumped, I may be over thinking.

 

I have a SharePoint list called Things that has multiple lookup fields. These fields are looking up values from a SharePoint List called Buildings.

 

Field names are the same in both lists.

 

BuildingName

BuildingNumber

BuildingManager

BuildingAsstManager

 

I have added BuildingName  and BuildingNumber fields from Things to my PowerApps (Things is the main List). My ultimate goal is to have Building Name be selected, then BuildingNumber will populate with the associated Number for the selected building. 

 

I have tried

 

Lookup(Buildings, BuildingName = <buildingnamedrop>.Selected.Value, BuildingNumber)

 

I need the lookup to provide the correct Building Number for the selected building name. This information is located in the Buildings SharePoint List.

 

The next twist is I do not want to have to add extra fields. I have 1 user that will only be using the SharePoint List and not the PowerApps. So extra fields will cause them to question the need for extra fields and PowerApps in general.

 

Any suggestions greatly appreciated.

 

Thank you

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @techtudoor ,

    What result are you getting from 

    Lookup(
     Buildings, 
     BuildingName = <buildingnamedrop>.Selected.Value, 
     BuildingNumber
    )

    If the buildingnamedrop is based on a Lookup field, the output reference is correct and if the BuildingName matches the item in the list Buildings, it should how the corresponding BuildingNumber.

    You can also try

    Lookup(
     Buildings, 
     BuildingName = <buildingnamedrop>.Selected.Value, 
    ).BuildingNumber

     

    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.

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @techtudoor ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

  • techtudoor Profile Picture
    249 on at

    Hi @WarrenBelz 

     

    I am getting close with 

     

    Lookup(

          Buildings,

          BuildingName = DataCardValue1.Selected.Value,

    ).BuildingNumber

     

    It shows what the expected output should be, but the dropdown for BuildingNumber does not show anything. The error I get is "Expected Table value."

     

    I should mention that BuildingNumber in the Buildings list is a single line of text, while the lookup field in Things is of course a dropdown. Could this error be due to BuildingNumber being a single line of text in the Buildings List?

     

    I am so close. I will have 2 more fields that will use the same syntax as well. So if I can get this one working, the others would work as well.

     

    Thanks 

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @techtudoor ,

    Can you please tell me what type of fields these all are in your data source.

  • techtudoor Profile Picture
    249 on at

    Hi @WarrenBelz , I apologize for the delay I have been a little under the weather. My data source were lookup fields which created my controls to be drop down options. What I ended up doing, was to remove 3 of the look up fields and make them single line of text fields only. Then I set the control for the 1 remaining lookup field to do a lookup from the Buildings SharePoint list.

     

    Default:

    If(Form1.Mode = New, LookUp(Buildings, BuildingNumber = DataCardValue3.Selected.Value).BuildingName, Parent.Default)

     

    Once I selected the building name from the dropdown, it then runs a lookup to populate the other fields from the Buildings List. The record is then stored in the Things list.

     

    I appreciate your assistance.

     

     

    Thank you

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard