How can I limit the API data that goes into my Bubble database?

My app currently makes a call to an API that grabs JSON data and inserts it into my database. Is there a way that I can tell Bubble that I only want the JSON data to go into my database if it meets certain criteria? For example, for a list of names and ages… I only want the API data to go into my database IF the age is over 18.

How can I achieve this?

Put the condition before inserting it into the database.

How you are inserting data into the database? via the workflow?

Correct, using a backend workflow, pictured here:

put the condition in “only when”…

1 Like