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 / Patch, Collection, Loo...
Power Apps
Answered

Patch, Collection, Lookup Dropdown

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I am trying to create a repeating section. Where every time I enter the values ​​they are saved in a list called 'Projects' I have 1 drop-down menu called 'City' which is a Lookup of another list in sharepoint. In the values ​​I have the following:

Items: The name of the list where the information is found (Lookup)

It displays the values ​​that are But, when I want to patch the information in the other list called 'Projects' no value is added. How can I patch dropdown values ​​in Sharepoint using a collection?

 

Patch(Project, ThisItem, {?????})

 

The same thing happens to me for the Yes or No options, which is a Toogle. Can someone tell me how I can save those values ​​in the collection? 

 

I appreciate the help. 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@SO24,

    Based on the issue that you mentioned, do you want to patch a collection to the SP list containing a Lookup column?

    Could you please share a bit more about the scenario:

    1. How you create the collection, does it share the same column name with the SP list?
    2. Is there a column in your SP list storing the Toggle value?

    If you want to patch a Lookup column in a SP list, you could check the following formula:

    Patch(Projects,
     ThisItem,
     {Lookup:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id:ThisItem.ID,
     Value:TextInput1.Text}
     }
     )

    Note: Since you use ThisItem, I assume that there is a Gallery. And you use a TextInput to enter to update the SP list.

    If you want to patch a Lookup column in a SP list using a collection, you could check the following formula:

    Patch(Projects,
     ThisItem,
     {Lookup:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id:CollectionName[@ID]
     Value:CollectionName[@ColumnName}
     }
     )

    If the above formula could not help you, please provide more details.

    Best Regards,

    Qi

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard