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

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:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 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,605 Super User 2025 Season 2 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard