In this way I create with the selected record in the Galley a collection “MyCollection”.
I modify the value of some records in the collection, and after I want update the record in the sharepoint list.
To make this, I have two buttons ( I’m not able use only one button, and I don’t’know why).
The first button in the “OnSelect property” has:
“ClearCollect(MyCollection; Gallery3.AllItems)”
So in this way I have all the elements modified in the collection.
The second button in the OnSelect property has :
“ForAll(
MyCollection;
Patch(
SpeseV01;
LookUp(SpeseV01; ID = ThisRecord.ID);
{ Title: txtTitolo.Value;
TipoSpesa: dropTipoSpesa.Selected;
Importo: numImporto.Value;
DataSpesa: dateDataSpesa.SelectedDate;
Pagamento: dropPagamento.Selected;
Fornitore: txtFornitore.Value;
Note: txtNote.Value;
DataRimborso: dateDataRimborso.SelectedDate;
IDRimborso: txtIDRimborso.Value
})
)
But it doesn’t’ work.
If I use the monitor, the error is :
“Fetching Items failed. Possible invalid string in filter query.”
What can I do ? I’m new of patch and LookUp function.