Hi Experts,
I have been trying to use the check box to get certain data when the user selects a specific Item and add them to the collection, however, while doing so it adds the records to the collection, but does not remove when a user selects, in fact, it only removes the item from the collection which was last added.
Please find the screenshot below

But the items are unchecked

when I tried to add another 3 items and remove them only one was removed i.e. last entry, rest are not removed, any idea why is this happing?

Final result

The code onCheck :
Set(
varSequence,
CountRows(ExportDataGal.AllItems)
);
Collect(
ExportData,
{
unique_id: varSequence,
data: ThisItem
}
);
The code on UnCheck :
Remove(ExportData,
{
unique_id: varSequence,
data: ThisItem
}
);
Could you please help on this if anyone has any idea what's wrong or missing something.
Thanks a million for taking the time to read and help.