Hi All,
I have created an endpoint called “trip” in the bubble Open App (accessible to everyone):
I will be sending a JSON of the following format, from zapier:
{
“flight”:{
"arrival":{
"name":"Newark Liberty International Airport",
"local-date-time":"2012-02-19T21:43:00",
},
"provider-details":{
"name":"Continental Airlines"
},
"details":{
"@number":"1573",
},
"departure":{
"name":"San Francisco International Airport",
"local-date-time":"2012-02-19T13:20:00",
},
"record-locator":"NJS8YH",
},
}
In bubble, I created a thing called “Flight”, which needs to be populated based on the information available in the JSON payload.
How do I define the keys for the bubble endpoint “trip”, so that the linked workflow “Create a new flight” populates the database with the correct information?
The mapping of the fields in thing “Flight” to the JSON keys is as follows:
-
Airline = flight → provider-details → name
-
Flight Number = flight → details → @number
-
Departure Airport = flight → departure → name
-
Departure Date = flight–> departure → local-date-time
-
Arrival Airport = flight → arrival → name
-
Arrival Date = flight–> arrival → local-date-time
-
Booking Reference = flight–> record-locator
I’m having difficulty mapping the JSON keys to the bubble endpoint “trip” so that the related workflow for creating a flight works properly.
If someone can help me get started on the mapping information for endpoint and the related workflow, that would be great !
Thanks!