I have a webhook on another service that is sending a JSON object via POST to an API workflow of mine (the JSON is included below).
If I use the “Auto-Detect” tool, Bubble parses this object and I get all the data in my workflow. Problem is, I must be able to get a query string that is included in the URL, which means that must find a way to capture the data from the object via the manual definition of the parameters.
How do I parse this object using manual parameters? I can work with JSON after the workflow is triggered, so I’m just trying to get anything I can, even the whole “body” in a text string would be enough.
So far I’ve tried the following manually defined parameters:
- body
- payload
- event_type
I’ve tried all of these with the “is list/array” both checked and unchecked.
None of these parameters are capturing anything. If they’re not marked as optional the workflow doesn’t run at all. If they are marked as optional, the workflow runs but their values are all null.
Is this is bug? Or am I missing something?
Here is the JSON object being sent:
{
"body": {
"created_at": 16496638,
"event_type": "project.updated",
"payload": {
"project": {
"id": "36405519",
"company_id": "9366267",
"creator_id": "2757377",
"creator_type": "User",
"creator_name": "AJ Briley",
"integration_relation_id": null,
"status": "active",
"public": true,
"name": "AJ Briley Test",
"address": {
"street_address_1": "99 N Woodland Dr",
"street_address_2": null,
"city": "Town",
"state": "FL",
"postal_code": "30880",
"country": "US"
},
"feature_image": [
{
"type": "original",
"uri": "https://static.companycam.com/lambda/projects/36405519/photos/aHR0cHM6Ly9jb21wYW55Y2FtLXBlbmRpbmcuczhem9uYXdzLmNvbI3M2Q3OC01MjZlLTRhMDgtYWI0ZC05M2E3MzIxMmNlYjEucG5n.jpeg?d=2880x2880°rade=true",
"url": "https://static.companycam.com/lambda/projects/36405519/photos/aHR0cHM6Ly9jb21wYW55Y2FtLXBlbmRpbmcuczMuYW1m9uYXdzLmNvbSMjI3M2Q3OC01MjZlLTRhMDgtYWI0ZC05M2E3MzIxMmNlYjEucG5n.jpeg?d=2880x2880°rade=true"
},
{
"type": "web",
"uri": "https://static.companycam.com/lambda/projects/36405519/photos/aHR0cHM6Ly9jb21wYW55Y2FtLXBlbmRpbmcuczMuYW1hem9uYXdzLmNvbS82MjI3M2Q3OC01MjZlLTRhMDgtYWI0ZC05M2E3MzIxMmNlYjEucG5n.jpeg?d=400x400°rade=true",
"url": "https://static.companycam.com/lambda/projects/36405519/photos/aHR0cHM6Ly9jb21wYW55Y2FtLXBlbmRpbmcuczMuYW1hemNvbS82MjI3M2Q3OC01MjZlLTRhMDgtYWI0ZC05M2E3MzIxMmNlYjEucG5n.jpeg?d=400x400°rade=true"
},
{
"type": "thumbnail",
"uri": "https://static.companycam.com/lambda/projects/36405519/photos/aHR0cHM6Ly9jb21wYW55Y2FtLXBlbmRpbmcuczMuYW1hem9uYXdzLmNvbjI3M2Q3OC01MjZlLTRhMDgtYWI0ZC05M2E3MzIxMmNlYjEucG5n.jpeg?d=250x250°rade=true",
"url": "https://static.companycam.com/lambda/projects/36405519/photos/aHR0cHM6Ly9jb21wYW55Y2FtLXBlbmRpbmcuczMuYW1hem9uYXdzL2MjI3M2Q3OC01MjZlLTRhMDgtYWI0ZC05M2E3MzIxMmNlYjEucG5n.jpeg?d=250x250°rade=true"
}
],
"slug": "11cDXCjEZ13bgusA",
"project_url": "https://app.companycam.com/projects/36405519",
"public_url": "https://app.companycam.com/timeline/11cDXCjEZ13bgusA",
"coordinates": {
"lat": 33.91225363456,
"lon": -84.25220663402
},
"geofence": [],
"created_at": 1642322895014,
"updated_at": 1642223896638,
"embedded_project_url": "https://app.companycam.com/embed/projects/11cDXCj434EZ13bgusA",
"photo_count": 1,
"capture_photo_deeplink": "ccam://camera/36405519/QUogQnJpbGV5I34FRlc3Q%3D",
"integrations": []
}
}
},
"headers": {
"host": "powrline.bubbleapps.io",
"connection": "close",
"accept-encoding": "gzip",
"cf-ipcountry": "US",
"x-forwarded-for": "52.20.184423,::ffff:442.158.106.70",
"cf-ray": "6d1cccda7ff3-SEA",
"content-length": "2229",
"x-forwarded-proto": "https,https",
"cf-visitor": "{\"scheme\":\"https\"}",
"x-companycam-signature": "W+za7XoRxFYqqmmJGr8Opz8Dtr0=",
"content-type": "application/json",
"cf-connecting-ip": "52.99.189.23",
"cdn-loop": "cloudflare",
"x-forwarded-port": "443",
"x-forwarded-host": "powrline.bubbleapps.io"
}
}