I'm having an issue with a Gallery and saving the items in the Gallery to a collection (or I'm just doing it wrong). I load a Gallery and filter it based on user selected value. Here you can see there are 3 items in the gallery (confirmed by the count of Gallery.AllItems)

The Save All button has the following code which is causing an issue:
//Create collection with modified equipment information
Clear(ModifiedCollection);
ForAll(EquipmentGallery_DetailsScreen.AllItems,
Collect(ModifiedCollection,
{
RequestID: EquipmentGallery_DetailsScreen.Selected.RequestID,
ID: EquipmentGallery_DetailsScreen.Selected.ID,
AssetID: EquipmentGallery_DetailsScreen.Selected.AssetIDTextboxInput_DetailsScreen.Text,
VIN: EquipmentGallery_DetailsScreen.Selected.VINTextboxInput_DetailsScreen.Text,
Vendor: EquipmentGallery_DetailsScreen.Selected.VendorTextboxInput_DetailsScreen.Text,
IsPending: !(EquipmentGallery_DetailsScreen.Selected.IsPendingToggle_DetailsScreen.Value),
FulfilledBy: If( !(EquipmentGallery_DetailsScreen.Selected.IsPendingToggle_DetailsScreen.Value) = false, varCurrentUser.Email),
FulfilledDate: If( !(EquipmentGallery_DetailsScreen.Selected.IsPendingToggle_DetailsScreen.Value) = false, conDateTime),
IsAssetIDAssigned: If(IsBlank(EquipmentGallery_DetailsScreen.Selected.AssetID), false, true)
}
)
);I was expecting the ForAll to loop over all the items in the Gallery and add the field values to the collection. However, this is what I get instead. The first item in the Gallery added 3 times.
What am I doing wrong? How do I save the filtered items in the Gallery to a new collection? Thanks!