My app is receiving webhooks and running further actions/workflows based on the data received in the webhook. Does Bubble send the 200 OK code as soon as the webhook is received or after all action steps in the workflow are executed?
After the workflow is executed.
Is it possible to create an option to send a 200 code before any workflows begin?
You could probably make it work this way by doing the following:
- When you receive the data from the webhook, run 1 workflow and have it pass data to another bubble endpoint.
- For the 2nd endpoint, have all of the workflows that you do now.
As such, you send the 200 code almost immediately, and then the workflows run a split second after that.
Thank you for this very good suggestion. I believe that requires the âScheduled Workflowâ feature. For my purposes, I need to run these workflows daily, which would bump me up to a costlier monthly plan, not including additional server units. I am not griping about Bubbleâs pricing, Iâm just trying to be economical with the initial stages of my app.
So, Iâm wondering if sending a 200 code immediately is even possible. If so, is it a feature thatâs coming soon or is it a feature that needs to be sponsored?
Economical is smart.
Iâm pretty sure you can send the data to another endpoint on Bubble without scheduling it for future (i.e., so not using âSchedule Workflowâ feature).
@sridharan.s, you are right. Thanks for clearing that up.