Power Apps Patch to a LookUp Column

If we have a Lookup Column in SharePoint that we need to Patch from Power Apps, we can use the following example.

Patch(
    'Working Documents',
    LookUp(
        'Working Documents',
        ID = _SharePointIntegration_.SelectedListItemID
    ),
    {
        Site: [
            {
                Id: _ddlSites_.Selected.ID,
                Value: _ddlSites_.Selected.Title
            }
        ],
        'Document Type': [
            {
                Id: _ddlDocumentTypes_.Selected.ID,
                Value: _ddlDocumentTypes_.Selected.Title
            }
        ]
    }
)

Date
October 24, 2023
Tags
Architect
Kudos
Buy me a Coffee
Support this site.