# Run a custom action when purchase is successful

**URL:** <https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401>\
**Category:** Ask for Help\
**Created:** [December 28, 2020, 10:05pm UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401 "2020-12-28T22:05:18Z")\
**Posts on this page:** 14\
**Page:** 2

<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:** [April 1, 2022, 12:19am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/22 "2022-04-01T00:19:27Z")

</div>

So I assume you’re talking about sending an email when there’s a new row added and your If-Then-Else (?) column returns a “warning” value?

I assume you can have an on-submit action for your form that only triggers when that column’s value is WARNING, then trigger something through a webhook.

Or if you want to do that when users change something in an existing row, use the same logic in an edit screen.

---

<div class="post-metadata">

**Author:** ![Wim\_De\_Coninck](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wim_de_coninck/32/28179_2.png) [@Wim\_De\_Coninck](https://community.glideapps.com/u/Wim_De_Coninck)\
**Post date:** [April 1, 2022, 7:27am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/23 "2022-04-01T07:27:45Z")

</div>

I just want to send an email when a certain CALCULATED value is changed.

So users don’t change the value, they only change a switch and Glide calculates how many “false”. And if there are more “falses” than a given value, my CALCULATED field changes to WARNING. And that’s the moment when I want to have an email send to a certain person.

And there’s no on-submit action; there are only switches per user (see screenshot)

 ![2022-04-01_092719](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/8/28e9e42013a591625f7165b8a6dcf4473951b443.png)

---

<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:** [April 1, 2022, 8:28am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/24 "2022-04-01T08:28:38Z")

</div>

Then that won’t work. Switches do not trigger actions. You would have to use a component that can have an action tied with it in order for this to work.

---

<div class="post-metadata">

**Author:** ![Juan\_Gutierrez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/juan_gutierrez/32/692_2.png) [@Juan\_Gutierrez](https://community.glideapps.com/u/Juan_Gutierrez)\
**Post date:** [September 3, 2022, 1:08am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/25 "2022-09-03T01:08:33Z")

</div>

How do you send a call to the Webhook? only with the URL that it leaves you when configuring it? and how do you pass the data to it? Thank you!

---

<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:** [September 3, 2022, 2:07am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/26 "2022-09-03T02:07:01Z")

</div>

> **[Webhook](https://www.glideapps.com/docs/reference/actions/webhook)**
>
> Send data to other apps from Glide.

---

<div class="post-metadata">

**Author:** ![ichilddev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ichilddev/32/45179_2.png) [@ichilddev](https://community.glideapps.com/u/ichilddev)\
**Post date:** [November 21, 2022, 6:14am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/27 "2022-11-21T06:14:10Z")

</div>

Hi @ThinhDinh

Can an Action Text component trigger a custom action, say Add Row, if the Action Text component = certain date i.e. 1st of the month.

We are exploring to do a recurring function that create an invoice on the 1st of every month.

Thanks for your attention and advise.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/96552_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 21, 2022, 6:22am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/28 "2022-11-21T06:22:15Z")

</div>

> [@ichilddev](#):
>
> Can an Action Text component trigger a custom action, say Add Row, if the Action Text component = certain date i.e. 1st of the month.

It can, but you still need a user interaction to trigger the action.

> [@ichilddev](#):
>
> We are exploring to do a recurring function that create an invoice on the 1st of every month.

You’d be better off using something like Make or Zapier for this sort of thing. Any tool where you can set a schedule.

---

<div class="post-metadata">

**Author:** ![ichilddev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ichilddev/32/45179_2.png) [@ichilddev](https://community.glideapps.com/u/ichilddev)\
**Post date:** [November 21, 2022, 6:44am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/29 "2022-11-21T06:44:09Z")

</div>

@Darren_Murphy Thanks for the prompt reply.

Can Zapier or Make trigger the event in Glide Table? Or will need to work on Zapier - Google Sheet?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/96552_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 21, 2022, 7:11am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/30 "2022-11-21T07:11:25Z")

</div>

> [@ichilddev](#):
>
> Can Zapier or Make trigger the event in Glide Table?

Either can update a Glide Table via the Glide API, yes.

---

<div class="post-metadata">

**Author:** ![ichilddev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ichilddev/32/45179_2.png) [@ichilddev](https://community.glideapps.com/u/ichilddev)\
**Post date:** [November 21, 2022, 8:19am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/31 "2022-11-21T08:19:19Z")

</div>

I have created an account with Zapier and updated the Glide - Zapier Key into Zapier

However the upload video component does not allow a trigger to Zapier.

 ![UPload Video](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/e/ce0b0f6b8aabca829787a3dcf8cf05a549399f07.png)

Stuck here 😅

 ![Trigger Zapier](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/a/9a43d3a924079b44d62420869b1336e080e4dc10.png)

Is there any video we can take reference or suggestion?

What we would like to do is:

1. Upload video to Glide
2. Transfer Video to our Youtube Channel via Zapier
3. Zapier to update link to video
4. Embed Video link in Glide.

Appreciate any advice.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/96552_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 21, 2022, 8:26am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/32 "2022-11-21T08:26:33Z")

</div>

I’m not familiar with Zapier, but what you want to do should be possible.

You’ll need to trigger the Zap as an onSubmit action when the form is submitted.  
Your Zap would need to include the Video URL that was generated by Glide, as well as the RowID.  
Once the video has been uploaded to YouTube, you would then update the URL via the API using the RowID that was submitted with the original Zap.

---

<div class="post-metadata">

**Author:** ![biha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/biha/32/84110_2.png) [@biha](https://community.glideapps.com/u/biha)\
**Post date:** [May 19, 2023, 9:13am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/33 "2023-05-19T09:13:01Z")

</div>

Did you find a solution ?  
i found out, Zapier cannot set schedule.  
Need user interaction.

---

<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:** [May 19, 2023, 9:32am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/34 "2023-05-19T09:32:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/0/601e929b0647fec9ec2f6a674f333bcb22418ded.jpeg)

Do you mean this type of schedule?

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 12, 2024, 1:16am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/35 "2024-01-12T01:16:21Z")

</div>

Closed on January 12, 2024, 1:16am UTC



[Previous page](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401.md?page=1)
