Hey,
Try using the :unique elements expression at the end of your search (or filter). That should do the trick in filtering out the dups e.g. text outputs
I can’t test it right now, but I think you can get the associated SKU if you use the :group by operator and group by the product name. Have you tried that already?
I don’t think there are multiple items. I believe Tom is talking about a Product Sold data type, so each thing in that data type should be linking to a unique thing in a Product data type, and that could be the issue here.
Tom, if you just want a list of products and their associated SKUs, don’t you have that list somewhere else? You shouldn’t have to go through a products sold data type to get it.
Right, yeah… if this is a list of ‘products sold’ (which it is… I missed that on first read), you should simply be able to get each item’s Product (to get a list of Products), then use :unique elements (assuming Bubble doesn’t automatically de-dupe that list anyway).
Or use Grouped by Product (depending exactly on the Use case)
That assumes that the ‘Product Sold’ datatype links directly to a Product (which it definitely should).
Or instead of using unique elements or group by on the Product Sold data type, just show a list of products and their associated SKUs from the Product data type.
Well, like I said, the issue is likely that you don’t have your products stored in a way where you can easily get a list of them and their SKUs, and if you want to share screenshots of your data types, we might be able to help. Given that you didn’t react at all to any of that discussion, though, I’m guessing it’s not relevant to you for one reason or another, so I’m not sure what else we can do here.
and actually having since tested it, in the case I described, Bubble does NOT de-dupe the list, so you would have to use unique elements to remove the duplicate items.