Dynamic addition of JSON code bricks in the API Bubble connector

Hello guys :slight_smile:

I am using the Routific API with the API bubble connector. With this API, I have a JSON code with 2 bricks : Drivers ( named fleet) & Stops ( names visits). I would like to add my drivers/stops in a dynamic way, which means adding bricks of code. You will find an explanatory scheme below.

Do you guys know to do this ?

It would save me :slight_smile:

1 Like

If I understand correctly, you intend to iterate, right?
Iterate is possible only on the server side and you must use backend workflows.

But another way for your case is to use “format as text”. In this way, you can create a list of JSON (like what is in the image), and the output will be a text(JSON).
If you want a list of text(JSON), you can easily split it.

Thank you so much !

Unfortunately, I don’t find any spec about this feature " format as text", do you have any ? I’m new so it’s possible that I missed it…

The only thing I see is this on the bubble forum, but I don’t know how to use it in my case.

Can you help me please ?

1 Like

Yes, Sure.
Is this data that you want to convert to JSON, one of the data types of your application?