Update:
I think I am a step further but not there yet. My API was set to use as data. Now I changed that to use as action. On button click I trigger the API. Then I call the API Workflow passing the facilities name from the result of step 1. Now I get the message, that I need to upgrade. I wil upgrade tomorrow.
But after this I added total places parameter to the API workflow. The issue returned that it was a list of numbers instead of a number. So I changed it on the api workflow that it is a list/array.
What I don’t understand is why FacilityName isn’t seen as an list/array. Because both properties are part each of the JSON response array objects.
Thanks for the help/insight
Thanks both for the information. I will first try things out on Hobby Plan.
I am able to show the api response in a repeating group, but in the past we have had scenario’s of saving response data in the database (using other no-code platforms) or updating data based on the api response. I am looking into Bubble to decide if we want to add Bubble to our portfolio of no-code platforms. So I want to compare it witch some of our past use cases.
I have searched plugins for Bulk Data API, but I only found Bubble Data API. Is that the one to use?
Looking at my current scenario, how should I configure the api workflow or api workflow on a list regarding the following response below:
[
{
“facilityName”: “facility1”,
“time”: “2018-11-07T07:28:04.126973482Z”,
“totalPlaces”: 807,
“freePlaces”: 396,
“occupiedPlaces”: 411
},
{
“facilityName”: “facility2”,
“time”: “2018-11-07T07:28:04.126973482Z”,
“totalPlaces”: 364,
“freePlaces”: 214,
“occupiedPlaces”: 150
},
{
“facilityName”: “facility3”,
“time”: “2018-11-07T07:28:04.126973482Z”,
“totalPlaces”: 443,
“freePlaces”: 187,
“occupiedPlaces”: 256
},
{
“facilityName”: “facility4”,
“time”: “2018-11-07T07:28:04.126973482Z”,
“totalPlaces”: 139,
“freePlaces”: 92,
“occupiedPlaces”: 47
}
]
For each object in this array I want to create a record in my database table (list) “Facility” filling the properties Facility Name, Time, Total Places, Free Places, Occupied Places accordingly. I already setup a API Workflow with an Endpoint containing these properties as parameters. But how should I trigger this in button click on my page?
So far I have this limited to facility name, total places and free places:
API Worfklow
Button Workflow
I keep getting issues regards FreePlaces / TotalPlaces which are lists of numbers instead of number. I Just want to iterate over the json array and for each object saving a record with the properties stated
Thanks again! Looking forward to your reply.