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 / Sharepoint List Patch ...
Power Apps
Unanswered

Sharepoint List Patch Lookup Columns

(0) ShareShare
ReportReport
Posted on by 10

I am trying to update a record to a Sharepoint List that contains only Lookup Columns (using it as a relationship table):

 

Patch(CorpsGroupMembers,
              Defaults(CorpsGroupMembers),
                     {GroupID: LookUp(CorpsGroups, ID = glrGroupList.Selected.ID).ID,
                      MemberID: LookUp(CorpsDirectoryList, ID = drpSpareMemberList.Selected.ID).ID
                     }
          )

 

Individually, each Lookup works in a text field to see results, but I can't get it to work as a Patch statement.

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

    Hi @cbmarsh ,

     

    If GroupID is a lookup column (do not allow multiple selections) , the formula should be:

     

    GroupID: {Id:LookUp(CorpsGroups, ID = glrGroupList.Selected.ID).ID}

     

    Best Regards,

    Bof

  • cbmarsh Profile Picture
    10 on at

    I changed the list to only have one lookup column, MemberID. I amended the Patch to this:

     

    Patch(CorpsGroupMembers,
    Defaults(CorpsGroupMembers),
    {GroupID: 1,
    MemberID: {MemberID::LookUp(CorpsDirectoryList, MemberID = drpSpareMemberList.Selected.ID).ID}
    }
    )

     

    I get this: 

    The Type of this argument 'FullName' does not match the expected type 'Record'. Found type 'Error'.

     

    I presume this is the MemberID Lookup column, as that is the only complex column. 

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @cbmarsh ,

     

    Please try:

    Patch(
     CorpsGroupMembers,
     Defaults(CorpsGroupMembers),
     {
     GroupID: 1,
     MemberID:{Id:LookUp(CorpsDirectoryList, MemberID = drpSpareMemberList.Selected.ID).ID}
     }
    )

    In addition , there is no such an argument named 'FullName' in the formula you mentioned.

     

    Best Regards,

    Bof

  • cbmarsh Profile Picture
    10 on at

    FullName is a list column.

  • cbmarsh Profile Picture
    10 on at

    Thanks. I have done as asked. However, I still get errors. "The Function 'Patch' has some errors." "Invalid argument type. Expecting a Record value, but of a different schema." "Missing column. Your formula is missing a column 'Value' with a type of 'Text'." 

    The Sharepoint List 'CorpsGroupMembers' is defined as:

    GroupID (number, no decimal places)

    MemberID (Lookup - Column ID from Sharepoint List CorpsDirectoryList.)

    This Lookup in this list returns columns:

    MemberID:Mobile

    MemberID:Phone Number

    MemberID: Email

    MemberID: FullName

    MemberID:FulAddress

     

    When updating the list, I only have to enter the GroupID and Lookup the MemberID and the rest populate automagically.

     

    Having 'GroupID: 1,' is just an example of a GroupID.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard