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 / Filtered lookup field ...
Power Apps
Answered

Filtered lookup field in PowerApps not saved to SharePoint list

(0) ShareShare
ReportReport
Posted on by 15

Hi 

Have a SharePoint list named "NewHire", with a dropdown column "EmployeeType" and a lookup column connected to a list named "NewHireSchedule".

 

NewHireschedule have a "Title" and EmployeeType column.

Jette_0-1708003369985.png

In PowerApps when selecting "Onshore" in the "Employee type" (datacardvalue18) a filter is added  to the "Schedule" field which filtering the NewHireSchedule list to only show the the title depending on the selection for the "Employee type". This it is working fine.

Filter(NewHireSchedule,DataCardValue18.Selected.Value = EmployeeType).Title

 

My problem is that the selected data will not be saved in the NewHire list. So when opening the form after saving field is 

What to do to get the data saved?

Categories:
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    how do you save the data?

     

    you can try something like this:

    Patch(
     NewHire,
     Defaults(NewHire), // Use for creating a new item, or specify an existing item to update
     {
     Title: TextInputTitle.Text, // Assuming you have a title field
     EmployeeType: DataCardValue18.Selected.Value,
     NewHireSchedule: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: DropdownSchedule.Selected.ID, // Assuming your dropdown is named DropdownSchedule and it has the ID of the selected schedule
     Value: DropdownSchedule.Selected.Title // This line might not be necessary depending on how your list is set up
     }
     }
    );
    

     

    you would need to rename a few things here

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Jette Profile Picture
    15 on at

    Hi @mmbr1606, thanks for quick response

     

    I am not using the Title

    Below my settings for saving the form
    Patch(
    NewHire,varformdata,
    UserInfo_Form.Updates,
    Employment_form.Updates,
    HRdata_form.Updates,
    Hardware_form.Updates,
    AccessComment_form.Updates

    );

     

    It is on the employmen_forms i have the Lookupfiels

  • Jette Profile Picture
    15 on at

    Hi @mmbr1606 

    Solved my issue using you suggestion 

    Thanks for your support 👍

     

    Jette_0-1708348058296.png

     

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    great,

     

    make sure to mark an answer as solution so others know its solved and people with similar issues can find the right solution 😉

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard