# I need help: a custom action is not working correctly

**URL:** <https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367>\
**Category:** Ask for Help\
**Created:** [February 7, 2021, 12:03pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367 "2021-02-07T12:03:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 7, 2021, 12:03pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/1 "2021-02-07T12:03:58Z")

</div>

Hi, I need your help to understand why a custom action doesn’t work properly.  
The function is this:

- Step1 I change the user variable to 1, to see if he pressed the button
- Step2 I send a webhook to zapier which creates an email with the data I need
- Step3 I display a notification that the order has been sent successfully
- Step4 I change the user variable to 0
- Step5 I add the row with the order in the google Sheet
- Step6 I navigate to a new tab

My problem is that sometimes, so not always, with some users the action does not reach step 4, I see this because there are users who have the variable that remains at 1 and because in the order confirmation google sheet I do not have theirs. order even if I have the email (step2)

Last night a user performed step 2 for 16 consecutive times and never reached step 4.

This is the action

 ![Schermata 2021-02-07 alle 12.57.192](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/f/7fbe5f9e44124aaee09a020f5374da2d0d1cbdc4.jpeg)

 ![Schermata 2021-02-07 alle 12.59.33_2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/c/bc1101c8c7e88a70e69992c881cc2c1bac518e29.jpeg)

 ![Schermata 2021-02-07 alle 13.01.36_3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/4/54e427621e385b10f40f42914389f4ad2f4e7966.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 7, 2021, 12:23pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/2 "2021-02-07T12:23:07Z")

</div>

Do you have a public app?

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 7, 2021, 12:25pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/3 "2021-02-07T12:25:28Z")

</div>

yes, this is the app [https://civico121.it](https://civico121.it)  
do not complete the order otherwise it will arrive at the restaurant 🙂

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 7, 2021, 1:27pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/4 "2021-02-07T13:27:49Z")

</div>

Webhooks won’t work in a public app when the user hasn’t signed in, as far as I aware.

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 7, 2021, 3:03pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/5 "2021-02-07T15:03:13Z")

</div>

Thank you,  
The users must be logged in for place the order

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 7, 2021, 10:56pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/6 "2021-02-07T22:56:54Z")

</div>

If you can, open the developer console in your desktop and try pressing the order button to see if it stucks at the webhook part.

---

<div class="post-metadata">

**Author:** ![Pablo\_books](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_books/32/2110_2.png) [@Pablo\_books](https://community.glideapps.com/u/Pablo_books)\
**Post date:** [February 7, 2021, 11:06pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/7 "2021-02-07T23:06:22Z")

</div>

Out of curiosity, why is Glide disabling this functionality?

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [February 8, 2021, 12:13am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/8 "2021-02-08T00:13:44Z")

</div>

I don’t think so!

I used a public APP to test a Webhook and fire a Rest API call and everything worked perfect!

Saludos Thinh

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [February 8, 2021, 12:19am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/9 "2021-02-08T00:19:44Z")

</div>

Hola Fabio,

Your Set Column action is using a user specific column (step 4)?

I don’t know if there is a bug but testing days ago, I had problems to write data to a user specific Column dynamically when I created a Set Column action.

Saludos

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 8, 2021, 12:21am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/10 "2021-02-08T00:21:51Z")

</div>

@gvalero I think @ThinhDinh was referring to this from David. Maybe it’s not the case anymore???

> [@Webhook in a Public App](https://community.glideapps.com/t/webhook-in-a-public-app/22071/2):
>
> Webhooks currently require a user to be signed in to trigger.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 8, 2021, 12:30am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/11 "2021-02-08T00:30:13Z")

</div>

Yeah I was referring to that, and I’m sure that was true back then because I was not able to do it in one of my public apps just before David confirmed it.

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [February 8, 2021, 12:55am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/12 "2021-02-08T00:55:55Z")

</div>

What a curious case @Jeff_Hager and @ThinhDinh

I carried out my tests almost 7-9 days ago and I had no problem to fire my scenario.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/b/cba1dd390c1309578bd01fb58eda29f0938343c5.png)  
Let me try again my IGM scenario to verify all this.

See you

UPDATED:  
Holy Sheet!! 🙃

I forgot I have reached my actions limit using another scenario to work with MS SQL Server those days.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/a/0a0e4a0a29d906922fafc5ada25b57ef34062224.png)

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 8, 2021, 2:08am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/13 "2021-02-08T02:08:13Z")

</div>

Hi Yes, but step 1 is also user specific.  
Step 1 works perfectly ☹

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 8, 2021, 2:13am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/14 "2021-02-08T02:13:08Z")

</div>

the problem is that on some users it works fine.  
Look, these are today’s orders

 ![Schermata 2021-02-08 alle 03.10.17](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/2/f2b646abad6648999f10d59ca954a3ba41c0513d.jpeg)

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [February 8, 2021, 2:46am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/15 "2021-02-08T02:46:33Z")

</div>

Ok, I see

2 final questions:

1. Who changes the user variable to 0: You or Integromat?
2. Do you have a confirmation value (flag) from Integromat to be sure that your scenario was successful? Or you assume always that your Integromat action was executed fine and you reset your value in GS no mater what happend?

Saludos!

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 8, 2021, 2:54am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/16 "2021-02-08T02:54:54Z")

</div>

I change the variable to 0: is step 4  
I don’t have a confirmation value because up until 20 days ago I had no problems  
I have the email that arrives with the order number which confirms that the scenario on zapier has been successful

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [February 8, 2021, 3:21am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/17 "2021-02-08T03:21:47Z")

</div>

Wait,wait… you use Zapier and not integromat!! What a chaos… sorry for my confusion 🙃

ok… did that problematic user receive 16 times the confirmation email? If so, your Zap is fine and the problem is Glide or the data sent from your APP?

Have you checked carefull that data in order to recreate manually the case in Glide?.

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 8, 2021, 7:41am UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/18 "2021-02-08T07:41:24Z")

</div>

Yes, i use Zapier 🙂  
Yes, The problem is that the restaurant has received the same order 16 times  
Unfortunately I can’t create the problem and understand why it only happened to some users  
This is the zapier log

 ![Schermata 2021-02-08 alle 08.38.42](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/7/677662f53674ca62b734e0bcc3c4dfb858d116f5.png)

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 8, 2021, 2:18pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/19 "2021-02-08T14:18:07Z")

</div>

Ok I found the bug.  
The bug is that “set Column” cannot be used twice in a row with relation.  
Can you try if you also have this problem?

![Schermata 2021-02-08 alle 15.17.07](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/e/de4d2a66229207b7941a9fe1345bb57fd6035ca8.png)

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [February 8, 2021, 5:49pm UTC](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367/20 "2021-02-08T17:49:53Z")

</div>

💪

@Fabio_Leanzi what do you mean with “…used twice in a row with relation”?

A screenshot will help.

Saludos!

[Next page](https://community.glideapps.com/t/i-need-help-a-custom-action-is-not-working-correctly/22367.md?page=2)
