Extracting Alternating Numbers from API Response - Bypassing Repeating Groups?

Hey fellow Bubble enthusiasts,

I’m currently working on a Bubble project and running into a bit of a puzzle. I’m dealing with data retrieved from an API, specifically a list of numbers where each pair represents a date in Unix format followed by its corresponding count. To clarify, it’s like [date1, count1, date2, count2, …].

Now, I know the usual method involves using a repeating group to separate the dates and counts, but this process feels a bit redundant for my workflow action. I’m wondering if there’s a more direct way to extract every other number from the list without resorting to a repeating group.

My ultimate goal is to save these dates and counts into a state on the page for charting purposes. If anyone has experience or suggestions on streamlining this process without the need for a repeating group, I’d love to hear your thoughts.

Thanks a bunch for your help!

Using toolbox plugin and javascript

Hi, thanks for your reply. Could you point me in the direction of where I could find a script to learn from? It appears that all my calls are coming back this way. I’ve gotten around the case above by using filtered and conditions. Now I have a call that’s coming back like [Unix1, device1, city1,…]. Wish there was a way for my to structure the responses differently.

This topic was automatically closed after 70 days. New replies are no longer allowed.