Duplicated data on bubble database by API Call

Hi everyone,

I am currently working on a dropdown that displays timezones with values. The data is obtained from an external API when the page is loaded. Here’s a screenshot of what it looks like:

To achieve this, I have created a backend workflow that retrieves the data and stores it in the database:

However, I am facing an issue where I need to validate the workflow in the first image to ensure that it doesn’t execute if the API call result is the same as the timezones already stored in the Bubble database. Can someone please guide me on how to achieve this?

Thank you.

In your backend workflow just add a conditional to only create a new timezone if Do A search for Timezone where all the fields match first item is empty. If it is not empty then do nothing.

Thank you william, this reply works for me.

I leave here the conditional if anyone have the same question in a future

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