I have multiple rows in a collection called outputTable. I need to update all rows from this collection into a SINGLE column in a SharePoint list called MyList. It seems to be updating only the last row. DataCardValue1 is the list's ID column. DataCardValue16 is the Response column (multi-line text) in the SharePoint list. Not sure what I am missing.
// Clear the table and the selected (chosen) rows
Clear(outputTable);
Collect(
outputTable,
Filter(
Gallery2.AllItems,
IsChosen
)
);
// Loop thru the selected (chosen) rows, update the SharePoint list's response column with the file names
ForAll(
outputTable,
Patch(
'MyList',
LookUp(
'MyList',
ID = (Value(DataCardValue11.Text))
),
{
Response: DataCardValue16.HtmlText & "<br/>" & outputTable[@Name] & "<br/>"
}
)
)