Run api workflow on a list of groupings

It looks like this isn’t doable but just thought I’d ask anyway:
image

But there is no “grouping” to choose from in the list:
image

Seems like bubble doesn’t allow this? Or maybe I’m missing something?
Thanks

Yes, an understanding of what the :group by operator does to your data. Basically, it transforms it from whatever it is (in your case a geographic address) and creates a new type of data called ‘grouping’.

You can not set a backend workflow to have a parameter of ‘grouping’ as it is not really a data type. So, you should not be using the group by operator to create your list of geographic addresses that you need to send to the backend workflow.

If you are unable to figure out a way to use constraints on your search of ProductAvailability to get the same results you do from group by, then you can figure a way to change your group by location information into a list of geographic addresses.

There’s a hacky way to do this @paul29 .

Set the type to “Text”

Then in the list to run on just add after :Grouped by location → :formatted as text. in the box you should add a delimiter of “;” and in the text box enter each one of the groupings values you want separated by a comma. Then split by “;”

Then in the parameters section you can put → this text:split by “,” item # to reference the value from the grouping that you need.

I can’t share a screenshot because it’s proprietary and I know this is pretty complex, but it works :slight_smile:

1 Like

I know exactly what you mean. Thanks for the tip

1 Like