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 / Using IDs to get data ...
Power Apps
Unanswered

Using IDs to get data from multiple SharePoint Lists

(0) ShareShare
ReportReport
Posted on by 126

I have the SharePoint lists 'Authorisation_Dates', 'People' & 'Departments'.

aah_0-1669216902376.png

aah_1-1669216948675.png

aah_2-1669217007047.png

 

I have a form that uses the 'Authorisation_Dates' list as the data source. My problem is that I need one of the text fields on the form to display the department name.

 

To do this I need a formula that uses the employee ID from the 'Authorisation_Dates' list, matches it with the 'People' list, then uses the department ID from the 'People' list to match up with the department ID from the 'Departments' list and pull up the department name.

 

Any help on this would be appreciated.

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @aah ,

     

    Based on your description, I have made a simple test for your reference.

     

    SharePoint lists:

    vjefferni_0-1669273710521.png

    vjefferni_1-1669273710524.png

     

    vjefferni_2-1669273710524.png

     

    Formula:

    LookUp(Departments, 'Department ID' = LookUp(People,'Employee ID'=DataCardValue_EmployeeID.Text).'Department ID').'Department Name'

    vjefferni_3-1669273710529.png

     

    Best regards,

  • aah Profile Picture
    126 on at

    Thanks for the reply.

     

    It doesn't seem to be working for me and I'm not sure why, any ideas?

  • v-jefferni Profile Picture
    on at

    Hi @aah ,

     

    Is there any error message? Where would you like to display the department item?

     

    Best regards,

  • v-jefferni Profile Picture
    on at

    Hi @aah ,

     

    Is there any error message? Where would you like to display the department item?

     

    Best regards,

  • aah Profile Picture
    126 on at

    There is a delegation warning but that's all I get.

     

    So to display the information the user clicks the info button which then takes them to the form. The form uses the same data source and displays all of the users information using a LookUp but I just can't seem to get the Department Name to work.

    aah_1-1669278719767.png

    aah_2-1669278764092.png

  • NurSabrina24 Profile Picture
    165 on at

    For the individual details, did the user need to fill-in the details on their own? If yes, you could put the Default for the department name label as: 

    LookUp(Departments, DepartmentID = <dropdownname>.Selected.Value).DepartmentName

     

    Hope this solves it. 

  • aah Profile Picture
    126 on at

    They didn't, all of their info is already in my SharePoint lists. Thanks for the idea though.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard