Hello!
I’m using the API Workflows feature to receive data from an external service (JIRA) which sends a webhook containing JSON formatted data (example below).
The call gets saved in the DB and contains only dates as I can’t figure out how to save the rest of the data from the body of the call.
I would appreciate some help in figuring out how to stucture the DB and how to configure the workflow to enable this.
It’s a nested JSON payload, and currently Bubble doesn’t support reading nested objects via the API endpoint. Sadly, I’m in the same boat, but there is hope for the future!
I think people also use https://www.built.io/ for this sort of thing. Honestly, the more we can do within Bubble the better. I hope someone writes a plugin for parsing JSON. Maybe I will, when I have some time.
I haven’t delved into the plugin-documentation yet, that’s unfortunate though. Maybe the future will allow Bubble-certified server-side plugins (community development vs. sponsored add ons).
Info from Bubble after installing Blockspring and trying to add this flattener: “This block doesn’t have an identified type and cannot be used in Bubble yet. Sorry about this.”
After googling a but I managed to solve the problem with Zapier (“Send data from a webhook through a new webhook”) and now I receive the correctly formatted data in Bubble.is!
The solution in Zapier is “Send data from a webhook through a new webhook” and by default it flattens all payloads which then can be optionally unflattened when send.
Easy to configure (took me 10 mins) and it works like a charm!