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 Apps - Building Power Apps
Answered

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 

I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,424 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard