I’m trying to use schedule api to send a sms message using twilio.
The problem I’m having is that when I trigger the workflow it doesn’t trigger the api endpoint workflow and I’m not sure how to fix that.
Try putting “hide popup” at the end. Sounds like the workflow occurs within the popup.
I’ve set the popup to hide itself after the workflow, however it doesn’t schedule the api workflow and nothing appears in the log.
If I make the button that shows the popup redirect to a new page to create the text message alert, do you thing that would fix the issue?
Do you have API workflows enabled in your settings? And are you on a paid plan? They don’t work if you’re not on a paid plan.
I have a paid plan and in settings I have “This app exposes api workflow” checked, I assume that means it’s enabled.
Som ideas:
Try creating a test button that does nothing but schedule the workflow at a set time that you can test.
Also, run the debug in step by step mode to see what’s blocking the workflow.
Sometimes the errors are really small. I spent 4 days struggling with a Stripe payment error because of a misplace space in my API key…
Thank you for your help, I figured out the issue. The first issue was that the workflow only ran in the popup so the hide popup had to be behind that, and the second issue was how I was searching for the alerts. I had it search for alerts where the current time = a target time and they wouldn’t match up because first time data was client side and the other was server side, which was fixed by having the search for function sort by target time in ascending order.
Nice!
Ya, sometimes the errors are so subtle. I had an extra space once in an APIkey that threw me off for days.