Has anyone tried to send a Javascript Bubble’s Data to an API Workflow ? It seems that I can’t receive my value server-side. Bubble support can’t help me with this issue so I’m relying on the community
For those looking for an answer, you should separate actions from “client side” with actions from “server side” by using “Schedule a custom event” and create a custom event to trigger your API Workflow. You can use data saved in your state to send to your API Workflow.
Don’t use “Trigger Custom Event”. “Schedule a Custom Event” will execute the custom event in a separate workflow, whereas “Trigger Custom Event” will execute immediately in the same workflow.
Actually the best solution for your specific use case is not to schedule a custom event because it only relies on an arbitrary duration.
In fact the javascript to Bubble element provides an event triggering when the function is called (you need to check the box on the element). You should use this to make sure that your data is ready to be sent to the backend.