I have a button click that retrieves data from an API endpoint and sends it to a backend workflow to process and save data. I am trying to save all the data as individual entries in 2 separate databases. But, I can’t get it to work properly.
The structure that my API returns is in the attached image.
I need to save each “days - number” as its own data base entry and in that entry, it needs to reference the “sailings - id”, what is the best api workflow setup to achieve this?
For example, I need a database entry for day 1, 2, and 3 and each needs to include the ports name, activity, destination, - name, sail date, and ID.