web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps Patch - Shar...
Power Apps
Unanswered

PowerApps Patch - SharePoint filtered lookup Choice field

(0) ShareShare
ReportReport
Posted on by 77

Dear All,

 

I've a SharePoint Master list as follows:

List Name: Subjects

Column Names:

ID - OOTB SharePoint List column

Title Subject as display Name) - Single Line of Text - Having values as English, Math, History

Teacher - Person field multiple values - Having values as Teacher1, Teacher2, Teacher3

 

Now having transaction list as follows:

List Name: SchoolDiary

Column Name:

ID - OOTB SharePoint List column

Subject - Lookup column for Title from Subject List

 

Now in PowerApps form, depending upon Teacher logged in, I am Subjects allocated from Subject list. I am using Dropdown control to populate Subjects with below formula in Items property of this dropdown.

 

If(

!IsEmpty(

Filter(

Subjects,

User().Email in Teachers.Email

)

),

Sort(

Filter(

Subjects,

User().Email in Teachers.Email

).'Subject',

'Subject

)

)

 

And above formula gives me list of Subjects properly but it only has Subject column. Now in next step I need to Patch this column to add and update the records where I need to pass Id & Text. But I am unable to get Id as it's not in the filtered result. Can you please help me how can I get this & assign to Patch?

 

Thanks,

Sanjay 

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,494 Super User 2025 Season 2 on at
    Re: PowerApps Patch - SharePoint filtered lookup Choice field

    Hi @SanjayAdsure201 ,

     

    By using the .'Subject' selector, indeed only the Subject column is returned. If you leave that out, you'll receive all columns, including the Id column to be used in a Patch():

    If(
    	!IsEmpty(
    		Filter(
    			Subjects,
    			User().Email in Teachers.Email
    		)
    	),
    	Sort(
    		Filter(
    			Subjects,
    			User().Email in Teachers.Email
    		),
    		'Subject
    	)
    )

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard