I’m able to get the ‘non-nested’ fields: event_id, order_id, etc… to populate into my database using the API workflow, but the ‘nested’ fields profile:first_name, last_name & email don’t populate.
If I make profile_email a required field the POST fails and returns an error that the field profile_email doesn’t exist.
How have others handled these ‘nested’ json fields in the API workflow?
By ‘not populated’, I mean that the ‘nested’ fields don’t populate in the database.
I have an API workflow that is accepting the POST data below.
When the API is triggered, the non-nested fields, “event_id”, “id” populate in the database. Wonderful. But the nested fields “profile.first_name”,
“profile.last_name”, and “profile.email” don’t populate in the database.
If, in the endpoint, I make “profile.email” a required field (non-optional), the POST fails and the error message states that “profile.email” is not found. This hints to me, that I’m not specifying the nested fields profile.first_name, profile.email…correctly.
What is the correct syntax for these nested JSON fields?
I’m now using Zapier to flatten the nested JSON fields. The workflow now looks like EventBrite (webhook) → Zapier (webhook and mini-etl) → Bubble (API endpoint)
Here’s some screenshots on how it works in Zapier.
@emmanuel Is zapier still the best way to accomplish this or can the Bubble API endpoints now capture the data directly from these nested parameters in the webhook?
@stephencharles, I believe the new API Connector can handle nested parameters. Haven’t set it up myself, but pretty sure that’s one of the key new capabilities with the updated API Connector.
I was talking about JSON as response for the API Connector, not as a body of a request to the API workflow (it’s unfortunate all these concepts have API in it…).