I have a collection that stores the following data: ProjectID, ControlID, Description.
I patch the data to the sharepoint list named "Project to Control" by the following code:
ForAll('collection' As _item,
Patch('Project to Control',
{ProjectID: _item.ProjectID,
ControlD: _item.ControlID,
Description: _item.Description}
)
)
Assume there are some existing data in the SharePoint list, how can I update the existing SharePoint list from the collection if the record has the same ProjectID & ControlID and create a new record to the SP list for the rest?