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 LookUp Column wi...
Power Apps
Answered

Patch LookUp Column with multiple values from another list

(0) ShareShare
ReportReport
Posted on by 88

Hi all,

 

I want to patch all items from one list ('Order Items') to the other list ('IT Requests') items column when the OrderNo matches in both lists. The column 'Items' in the 'IT Requests' list is a lookup column.

 

ebels_3-1697805215322.png

 

Can someone help me with this? I'm starting to pull my hair on this...

Thank you!

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @ebels 

    According to your description, you want to use the Patch() in Power Apps to populate your Items columns in 'IT Requests' list from the [Item] field in the 'Order Items' list. And the [Items] is a lookup type columns in your side .

    I test it in my side and here are the steps you can refer to :
    (1)This is my test data:

    vyueyunmsft_0-1698044858024.png

     

    (2)We can use this code in Power Apps Buuton-OnSelect:

    ClearCollect(Spdata,'IT Requests');
    ForAll(Spdata As IT, Patch('IT Requests' , IT , {Items:
    ForAll( Filter('Order Items', Title = IT.OrderNo) As test,{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Id:test.ID , Value: test.Item } ) } ))

     

    The 'Id' is the ID column in your LookUp table , and the 'Value' is the related Lookup Column when you create this lookup column.

    And the result is as follows:

    vyueyunmsft_1-1698044926740.png

     

    And for the more information, you can also refer to :
    Solved: Powerapps update LookUp Column (multi-select) - Power Platform Community (microsoft.com)

     

    Best Regards,

    Yueyun Zhang

     

  • ebels Profile Picture
    88 on at

    @v-yueyun-msft Thanks!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is just what i am looking for, but one question...

    What is/what function is "Spdata"

    The reason i as is that i get an error on that one

     

    ClearCollect(Spdata,'IT Requests');

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard