//Create a collection for the data export
ClearCollect(colExportActions, {});
ForAll(GalleryAllActions.AllItems, Collect(colExportActions, {LinkedChange: ThisRecord.LinkedChangeGal.Text, Title: ThisRecord.Title4_2.Text, ActionOwner: ThisRecord.Owner.Text, ActionType: ThisRecord.TypeOfAction.Text, TargetCloseDate: ThisRecord.TargetCloseDate.Text, Status: ThisRecord.ButtonActionStatus.Text}));
RemoveIf(colExportActions, IsBlank(Title));
However, I noticed that the export was missing data from further down in the export - all the columns except the Title were displaying as blank. If I scroll down the gallery to view all items before clicking on my export button, then I don't have this issue and I get all data.
I can see that the collection itself is not showing all the data.
From other posts it looks like using ThisRecord in a ForAll can be buggy - is there another way I could write this?
It had been working fine on this one app until recently. Another app uses the same code structure without any issues.