Hello everyone,
I have two Common Data Service (CDS) tables Tray and Plant respectively. Currently in my solution Tray table is displayed in a gallery. When I select an item in this gallery (Gallery.Selected.Name) I want to check how many of the records in the Plants table have the same value (for column Plants.TrayName) as the one that's selected in the gallery. Then for all the records that have Gallery.Selected.Name = Plants.TrayName I want to add these records to a new collection.
So far I've tried ForAll(Plants, If(Gallery1.Selected.Name in Plants.TrayName, <action where this row is added to a collection>)) but this gives me error "Invalid schema, expected one-column table" that points to Plants.TrayName.
Any suggestions?