# What is the best way to add a database trigger for insertion?

**URL:** <https://forum.bubble.io/t/what-is-the-best-way-to-add-a-database-trigger-for-insertion/175385>\
**Category:** Need help\
**Created:** [October 25, 2021, 5:23pm UTC](https://forum.bubble.io/t/what-is-the-best-way-to-add-a-database-trigger-for-insertion/175385 "2021-10-25T17:23:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tika.kuikel](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@tika.kuikel](https://forum.bubble.io/u/tika.kuikel)\
**Post date:** [October 25, 2021, 5:23pm UTC](https://forum.bubble.io/t/what-is-the-best-way-to-add-a-database-trigger-for-insertion/175385/1 "2021-10-25T17:23:59Z")

</div>

It looks like there is a database trigger event in backend workflow but that trigger runs every time there is a change. What conditions can I add or is there any other way so the trigger only runs at insertion (when a new thing is created)?  
For example, do specific actions when a new user signs up?  
One solution could be to do those actions on the frontend after a user signs up, but I don’t want to do it on the frontend for some specific reasons.

---

<div class="post-metadata">

**Author:** ![alanpieczonka](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alanpieczonka/32/99909_2.png) [@alanpieczonka](https://forum.bubble.io/u/alanpieczonka)\
**Post date:** [October 26, 2021, 2:05pm UTC](https://forum.bubble.io/t/what-is-the-best-way-to-add-a-database-trigger-for-insertion/175385/3 "2021-10-26T14:05:30Z")

</div>

Hi @tika.kuikel

Set up the things that you want to be done in a traditional backend workflow and run it when a new user signs up. It will be processed in the background (on a server).

Best,  
Alan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [January 3, 2022, 5:24pm UTC](https://forum.bubble.io/t/what-is-the-best-way-to-add-a-database-trigger-for-insertion/175385/4 "2022-01-03T17:24:42Z")

</div>

Closed on January 3, 2022, 5:24pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
