Thanks SmartMeter,
The Patch is working fine. The challenge is getting alle the records in my collection to modfy fields in different records in the datasource. I am trying something like this:
Collect(xUpdateChanges,UpdateChanges);
ForAll(UpdateChanges,
Patch(Vareliste,First(xUpdateChanges).RecordId),{Sorter: Value(First(xUpdateChanges).Sorter)};
Remove(xUpdateChanges,First(xUpdateChanges))
)
Was also looking at this:
UpdateIf(Vareliste,UpdateChanges.RecordId exactin Vareliste.RecordId,{Sorter: UpdateChanges.Sorter})I much prefered the second option, But cant get any of them to work.
Or is there some entirely different way of doing it?
Thanks in advance.