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 / lookup between two SP ...
Power Apps
Unanswered

lookup between two SP Lists

(0) ShareShare
ReportReport
Posted on by 157

Hi,

 

I have 2 SharePoint lists, list A and B, I need to retrieve some date from list B to A through PowerApps form - just only some-, 

I'm using the formula : 

 

LookUp(
 'Demo - Employees Info',
 'Employee File Number' = DataCardEmployeeFileNumber.Text).
 'Title'

and also using 

 

LookUp(
 'Demo - Employees Info',
 'Employee File Number' = DataCardEmployeeFileNumber.Text,
 'Title'

)

both of them seems working but it's not showing me the data until I click "Cancel" button then come back to the Gallery then click "Add Item" button I see the first row still there!

 

so now I have 2 issues 

 

  1. lookup formula not retrieves the data automatically, the upper horizontal dots not appearing " . . . " 
  2. always I see the first row list B data when I want re-add items, even I configure AddItem.OnSelect = NewForm(Form1);Navigate(Form1,ScreenTransition.Cover)

 

 

Thanks,

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @ElMeSaFeR,

     

    Could you please let me know the relationship between List A and List B?

    By the way, an explanation of the syntax used in the Lookup function is much appreciated.

    LookUp(
     'Demo - Employees Info',
     'Employee File Number' = DataCardEmployeeFileNumber.Text).
     'Title'

    Per my understanding, the two lists:

    List B: 

    'Demo - Employees Info'

    List A:

     

    'Employee File Number'

    Right?

     

    To make the lookup () function work, for example, Lookup List B based on selection from List A, then List B should have a field which contains the same value from one of the field in List A.

    Assuming they both have the Employee_File_Number field, then to lookup List B from selection of List A, the function should be written as:

    Lookup(ListB, NumberFieldB=ListA_Selected.NumberField, FieldinListB)

    The Selected record could be obtained from a Dropdown Selection, or a Gallery Selection, or another lookup function.

     

    A document for Lookup fields for your reference:

    How to link SharePoint lists using a lookup field in PowerApps

     

    Regards,

    Michael

  • Sharif Alhennawy Profile Picture
    157 on at

    Hi @v-micsh-msft

     

    I'm sorry for late  ... 

     

    the list A is should be a form request like a vacation request or travel request 

    list B contains an employees information like file number, first name, and last name and other details 

     

    I need once I write a file ID into PowerApps form - linked with list A - to lookup to list B and list some information and fill it into the PA form 

     

    I create a lookup column in list A with a name "LookUpIDNo"  and get information from list B with "Empl ID Number"

     

    at the same time 

    I create a lookup column in list B with a name "LookUpFileNo" -just a different name -  and get information from list A with "Empl File Number" 

     

    and using this code in each DataCard I want to fill it from the list B 

    Lookup(ListB, NumberFieldB=ListA_Selected.NumberField).List-B-ColumnName

     

    It's working fine now but I don't know which the lookup column is the correct or both are correct!

     

    Regards;

     

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard