# Scheduling an API Workflow from a Custom Event doesn't seem to work, any Ideas?

**URL:** <https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803>\
**Category:** APIs\
**Created:** [November 11, 2016, 9:03pm UTC](https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803 "2016-11-11T21:03:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru1000](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@dru1000](https://forum.bubble.io/u/dru1000)\
**Post date:** [November 11, 2016, 9:03pm UTC](https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803/1 "2016-11-11T21:03:58Z")

</div>

Hi All,

I’m trying to schedule an API Workflow as an action from within a Custom Event (I’m on the API Workflows page).

Basically It doesn’t schedule the API workflow at all and nothing happens.

If I schedule the exact same API Workflow from another page, say by clicking a button, then everything works as you’d expect. The only difference is where i’m scheduling the workflow from.

Has anyone tried this, is it a bug?

\*Just to add - I tried this in a blank project - [https://bubble.io/page?type=api&id=test420&tab=tabs-2](https://bubble.io/page?type=api&id=test420&tab=tabs-2)  
I don’t even have the option of triggering the API as action from the custom event. But gain I do on the Index page using the button. I’m confused.

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [November 12, 2016, 12:43am UTC](https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803/2 "2016-11-12T00:43:20Z")

</div>

My assumption for this is because API Workflows expect data of some kind, and a custom event itself doesn’t “hold” any data to begin with and wouldn’t have anything to send or reference. The API Workflow “page” isn’t actually a page in your app so there’s nothing to reference. You have to send data to the workflows.

Notice that if you add a custom event to any page that does exist, you’ll then be able to schedule an API workflow from the custom event there. What are you trying to achieve that you’re wanting to do this?

* * *

Gaby | [Coaching Bubble](http://coachingbubble.com)

---

<div class="post-metadata">

**Author:** ![dru1000](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@dru1000](https://forum.bubble.io/u/dru1000)\
**Post date:** [November 12, 2016, 2:30am UTC](https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803/3 "2016-11-12T02:30:09Z")

</div>

Thanks for the help, you might be right but API Workflows don’t always need data do they?

From the index page on that test site I linked to I was able to schedule an API, like you said, without passing any data.

This is what I’m trying to achieve  
In my live app I sell a mix of physical and digital products. I have an API Endpoint that receives a payment confirmation from Zapier. This triggers one of 2 Custom Events for dealing with physical orders that need to be shipped or digital orders that can be emailed to the customer. It’s from these Custom Events that I then need to schedule a workflow 2 days after the purchase, and this is where the problem lies.

In the above scenario I am trying to pass data from the API Endpoint to the Custom Event and then to the Scheduled API Workflow.

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [November 12, 2016, 3:52am UTC](https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803/4 "2016-11-12T03:52:15Z")

</div>

You could have the original API Endpoint’s workflow trigger both responses. The responses being 2 additional workflows, where they each only run if conditions are met. So Zapier webhook is received \> trigger API workflows A & B

A will only run if the webhook says the order was for a digital product. B will only run if for a physical product.

---

<div class="post-metadata">

**Author:** ![dru1000](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@dru1000](https://forum.bubble.io/u/dru1000)\
**Post date:** [November 12, 2016, 9:01pm UTC](https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803/5 "2016-11-12T21:01:52Z")

</div>

Yeah that’ll work, seems like the custom events only work at the page level. Thanks.

---

<div class="post-metadata">

**Author:** ![greg18](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/greg18/32/94594_2.png) [@greg18](https://forum.bubble.io/u/greg18)\
**Post date:** [October 6, 2021, 3:40pm UTC](https://forum.bubble.io/t/scheduling-an-api-workflow-from-a-custom-event-doesnt-seem-to-work-any-ideas/7803/6 "2021-10-06T15:40:19Z")

</div>

Yes it still seems correct that you cannot put a Scheduled API Workflow inside of a Custom Event…the progress bar just hangs forever if you try it.

I didn’t find mention of this limitation in any documentation, nor on any of the tutorial videos out there.
