# Add conditions to workflow

**URL:** <https://community.glideapps.com/t/add-conditions-to-workflow/79470>\
**Category:** Ask for Help\
**Tags:** workflows\
**Created:** [January 24, 2025, 3:27am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470 "2025-01-24T03:27:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 24, 2025, 3:27am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/1 "2025-01-24T03:27:51Z")

</div>

I have a workflow that checks a CRM to see if there are any exisiting deals for a company.

**Step 1**  
The response will either have items or it won’t. I check for items in the response column to determine if there is an existing deal and add a value to a column.

**Step 2**  
If there is an existing deal, I need to determine the status of the most recent deal and if it was won or lost (not open) then I need to check the closed time (includes date). This is so we can filter out companies that have had a deal closed in the last two years to avoid bugging them.

Workflow:

1. Trigger step 1 via button
2. Trigger step 2 via a different button

Because step 2 is only required based on the results of step 1, ie, there is at least one existing deal for a company, I want to chain these workflows.

However, I need to add a condition to my workflow and can’t see an option to do this. My goal is one button to trigger step 1 or step 1 and then step 2.

 ![Screenshot 2025-01-24 at 14.29.23](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/a/8a68994a5047e6b4f6d1762522bec5c4efefdf4c.png)

I want to add a condition between these two calls. How do I achieve this? 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 24, 2025, 3:39am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/2 "2025-01-24T03:39:50Z")

</div>

> [@blairrorani](#):
>
> I want to add a condition between these two calls. How do I achieve this

You can’t do that with a user initiated action.  
But what you can do is use that second step to call a webhook triggered action, and then you can do your conditional check in there.

Here is a video I made recently that demonstrates. The use case is completely different to yours, but the general idea is the same.

https://www.loom.com/embed/93eeeeb72d8c4dcab27544fcac871338

[https://www.loom.com/share/93eeeeb72d8c4dcab27544fcac871338](https://www.loom.com/share/93eeeeb72d8c4dcab27544fcac871338)

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 25, 2025, 5:17am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/3 "2025-01-25T05:17:44Z")

</div>

Thanks mate, how did you get the condition “mid flow”? Is that because the trigger is a webhook? As mentioned for me I only have the option to add a condition at the start of a flow right after the trigger.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 25, 2025, 5:19am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/4 "2025-01-25T05:19:20Z")

</div>

It’s because it’s a webhook triggered workflow, which allows conditions to be added anywhere in the flow.

> **[Webhook Trigger | Glide Docs](https://www.glideapps.com/docs/automation/workflows/webhook)**
>
> Trigger workflows with an incoming Web request.

---

<div class="post-metadata">

**Author:** ![dpschramm](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dpschramm](https://community.glideapps.com/u/dpschramm)\
**Post date:** [October 20, 2025, 1:42am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/5 "2025-10-20T01:42:21Z")

</div>

What’s the best practice for scenarios where a Call API action is triggered from a button in the interface, and I want to change the interface (e.g. show a success versus failure toast) depending on the result of the Call API action?

Is this not possible?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 20, 2025, 2:35am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/6 "2025-10-20T02:35:58Z")

</div>

You could write the API return status into a User Specific column, use that in an if-then-else column to construct a success/failure message, and then use that as the message in a notification after the API Call.

---

<div class="post-metadata">

**Author:** ![dpschramm](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dpschramm](https://community.glideapps.com/u/dpschramm)\
**Post date:** [October 20, 2025, 2:55am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/7 "2025-10-20T02:55:49Z")

</div>

I also needed to conditionally write to some columns based on whether there was a success or failure - it looks like the “Wait for condition” action is what I needed, as my understanding is it will only proceed if the condition is met (I’m checking that the status response was “success” before updating the columns).

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 20, 2025, 2:57am UTC](https://community.glideapps.com/t/add-conditions-to-workflow/79470/8 "2025-10-20T02:57:15Z")

</div>

Yeah that should work.
