API Endpoint that triggers multiple actions?

I set up an API workflow so that every day I can send a text message at 5pm.

I’ve gotten this to work with a single phone number. However, I want the workflow to send the same text to all users phones that are “type student.”

I know that I could manually enter in every student in the workflow. Is there an easier way to do this?

Here’s the edit page: practicebuddy | Bubble Editor

Here’s my current workflow.

Any ideas?

I’m assuming the Recipient field doesn’t accept multiple numbers? (I thought it did…)

You could have the endpoint schedule an API workflow on a list, and that 2nd workflow is what sends the text message.


1 Like

I’m not sure if the Recipient field accepts many numbers. Let me try with two manually and see.

If it does, how would I set up the query to input all the numbers?

If it doesn’t, I’m not I follow how to do this

“You could have the endpoint schedule an API workflow on a list, and that 2nd workflow is what sends the text message.”

What, specifically, would I need to do this?

It looks like it only accepts a single number. I tried to put in two but got an error.

Will the “schedule a workflow” send the text to all users?

The endpoint that is triggered daily triggers another endpoint immediately. In the screenshots I sent above, you can see that I have 2 endpoints. One called Daily (like the one you have) and another called Send Text.

The action under Daily is “Schedule API Workflow on a List”. Which means it will trigger the Send Text endpoint for every item in a list. Check out the setup for the Schedule action:

  • Type of things = User
  • List = Search for Users (type=student)
  • API Workflow = Send Text
  • Scheduled Date = Current Date/Time (which means it will fire immediately, no need to delay further)
  • Student (parameter set up in the Send Text endpoint) = This User

So for every User in the list, the Send Text endpoint will run.

The Send Text endpoint’s action is the actual text message action. And the Recipient pulls from the value of the parameter.

Ahh okay, got it.

Another question about phone numbers and data types.

In order for Twilio to work the number must be in this format: 15162536232

In the signup, I have the phone field set to “US Standard Phone” but all of the data is entered without the 1, how can I add the 1?

Will this work?

Yes, that will work. As long as your Phone field is a text, you’re just appending text to more text!

Great. I’ll do it this way then.

Right now, Phone is a “text” data type in the db.

For some reason, when I set the phone as “number” in the db, I can’t get it to connect properly in the workflow section.