cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dshrubb
Helper I
Helper I

Power App to two sharepoint lists

Ive got two sharepoint lists

1. ContactDetails - which is a generic sharepoint list I use to hold data for other purposes

ContactDetails.jpg

2. StudentManagement -  this is a sharepoint list created to hold data from the completed power app form.

StudentManagement.jpg

The idea is to have a form that we fill in to record data about a student that is stored in a sharepoint list called StudentManagement.  I have created an app that allows the user to select a student using cascading drop downs for the data entry. 

Power App copy.jpg

The year and student name comes from a sharepoint list called ContactDetails.  This list also has some related data that i want to include on the form and subsequently upload into the StudentManagement list. 

DataCardValue63 is the year  

DataCardValue66 is the student name

Power App wish list.jpg

I have tried to create a Filter function to pull in the data, but can't get it to work.  I have done quite a bit of searching for help prior to posting this, but can't really modify solutions to suit.  Some help would be really appreciated.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tolu_Victor
Resolver II
Resolver II

Hi 
The code below would fix your issue

 

Filter(ContactDetails, StudentID = DataCardValue66.Selected.StudentID)

 

You were comparing ID to just the text so it wont work. Use the "Selected" instead of "SelectedText" so you have the option to pick the exact column you need to compare.

There might be typos in my code but that is the general idea

 

View solution in original post

1 REPLY 1
Tolu_Victor
Resolver II
Resolver II

Hi 
The code below would fix your issue

 

Filter(ContactDetails, StudentID = DataCardValue66.Selected.StudentID)

 

You were comparing ID to just the text so it wont work. Use the "Selected" instead of "SelectedText" so you have the option to pick the exact column you need to compare.

There might be typos in my code but that is the general idea

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,873)