# Custom event for notification

**URL:** <https://community.gravityforms.com/t/custom-event-for-notification/11024>\
**Category:** Get Help\
**Tags:** gform\_notification, notification-events, gform\_notification\_events, gravity-flow\
**Created:** [October 25, 2021, 1:19pm UTC](https://community.gravityforms.com/t/custom-event-for-notification/11024 "2021-10-25T13:19:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5f33d6cd4ab78826](https://avatars.discourse-cdn.com/v4/letter/u/6de8d8/32.png) [@user5f33d6cd4ab78826](https://community.gravityforms.com/u/user5f33d6cd4ab78826)\
**Post date:** [October 25, 2021, 1:19pm UTC](https://community.gravityforms.com/t/custom-event-for-notification/11024/1 "2021-10-25T13:19:24Z")

</div>

Hi all,  
we need to have a custom event in order to trigger notifications, how is that doable?  
Our scenario: we receive a payment confirmation, then we need to make a custom verification of the person who paid - and this mean we have to wait for a supplementary confirmation we receive from an API.  
THIS should be our trigger event for gravity forms notifications.

Any help would be appreciated to point us in the right direction.  
Thanks & regards,

---

<div class="post-metadata">

**Author:** ![sacom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sacom/32/53_2.png) [@sacom](https://community.gravityforms.com/u/sacom)\
**Post date:** [October 25, 2021, 2:13pm UTC](https://community.gravityforms.com/t/custom-event-for-notification/11024/2 "2021-10-25T14:13:11Z")

</div>

Which hook are you using to trigger your custom code to call the third-party API?

---

<div class="post-metadata">

**Author:** ![samuel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/samuel/32/2539_2.png) [@samuel](https://community.gravityforms.com/u/samuel)\
**Post date:** [October 25, 2021, 2:47pm UTC](https://community.gravityforms.com/t/custom-event-for-notification/11024/3 "2021-10-25T14:47:49Z")

</div>

We have a [snippet](https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-notification-events.php) you can use to create custom notification events, that you can use as a starting point for what you want to do.

I hope this helps.

Best,

---

<div class="post-metadata">

**Author:** ![JamieO](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jamieo/32/2521_2.png) [@JamieO](https://community.gravityforms.com/u/JamieO)\
**Post date:** [November 14, 2021, 6:23pm UTC](https://community.gravityforms.com/t/custom-event-for-notification/11024/4 "2021-11-14T18:23:14Z")

</div>

> [@user5f33d6cd4ab78826](#):
>
> Our scenario: we receive a payment confirmation, then we need to make a custom verification of the person who paid - and this mean we have to wait for a supplementary confirmation we receive from an API.

There is a good chance that this would be something you could handle via Gravity Flow without any custom code required. If your payment confirmation is in the direct response to your API request (i.e. real-time), the [outgoing webhook response mapping](https://docs.gravityflow.io/article/237-how-to-setup-outgoing-webhook-steps-with-response-mapping) provides what you need. If it is an asyncronous call that may happen anywhere from seconds to hours+ later, the [incoming webhook extension](https://gravityflow.io/downloads/incoming-webhook/) provides you with an API endpoint specific to moving that entry further into its workflow and has similar [request mapping capabilities](https://docs.gravityflow.io/article/279-incoming-webhook-step). Both also support conditional logic based on the request/response codes (200/400/500) from servers so you can use other step types as manual investigation points should there be a server error due to network or 3rd party system reasons.

[Email notifications can also also be setup as step activity](https://docs.gravityflow.io/article/72-email-notifications) - conditional upon field values or status of step completions - giving you a strong ability to create a workflow that is both automated and perceived by users as unique to their request by how you tailor the messaging.

Hope that helps.  
Jamie

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [December 14, 2021, 6:23pm UTC](https://community.gravityforms.com/t/custom-event-for-notification/11024/5 "2021-12-14T18:23:28Z")

</div>

Closed on December 14, 2021, 6:23pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
