# Tulip App Base Layout Trigger order

**URL:** <https://community.tulip.co/t/tulip-app-base-layout-trigger-order/10057>\
**Category:** Support, Troubleshooting, & Help\
**Tags:** apps, triggers\
**Created:** [December 14, 2023, 1:36pm UTC](https://community.tulip.co/t/tulip-app-base-layout-trigger-order/10057 "2023-12-14T13:36:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard-SNN](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/richard-snn/32/1166_2.png) [@Richard-SNN](https://community.tulip.co/u/Richard-SNN)\
**Post date:** [December 14, 2023, 1:36pm UTC](https://community.tulip.co/t/tulip-app-base-layout-trigger-order/10057/1 "2023-12-14T13:36:40Z")

</div>

This may have been answered before but a quick search didn’t find what I needed.

Are entry triggers on the base layout executed before or after any step entry triggers?

Or is there a Tulip article or documentation that covers how all triggers work?

---

<div class="post-metadata">

**Author:** ![thorsten.langner](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thorsten.langner](https://community.tulip.co/u/thorsten.langner)\
**Post date:** [December 14, 2023, 1:48pm UTC](https://community.tulip.co/t/tulip-app-base-layout-trigger-order/10057/2 "2023-12-14T13:48:19Z")

</div>

Base Layout first…

That is what I can tell from experience.  
I’m not sure, if there might be a situation when they mix up or so…

---

<div class="post-metadata">

**Author:** ![Richard-SNN](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/richard-snn/32/1166_2.png) [@Richard-SNN](https://community.tulip.co/u/Richard-SNN)\
**Post date:** [December 14, 2023, 2:29pm UTC](https://community.tulip.co/t/tulip-app-base-layout-trigger-order/10057/3 "2023-12-14T14:29:38Z")

</div>

I was afraid that was the answer, which is unfortunate in my current situation.

I have already had to create some complicated triggers twice because I need it to run on app entry and then on a timer trigger to update every 5 minutes.

I’m actually running a connector function that returns data for the current shift and previous two shifts. I then grab index 0 from the array for the current shift and do my calculations.

What I would like to be able to do is copy paste the step two times and change which index is being grabbed and recalculate based on the data from the other two shifts. That will work but now I have a lot of redundant triggers that each need to be updated if I need to change the calculation method.

I think a really nice new feature would be application global functions that could be called from any trigger.

---

<div class="post-metadata">

**Author:** ![danielpomeranz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/danielpomeranz/32/9379_2.png) [@danielpomeranz](https://community.tulip.co/u/danielpomeranz)\
**Post date:** [December 14, 2023, 4:44pm UTC](https://community.tulip.co/t/tulip-app-base-layout-trigger-order/10057/4 "2023-12-14T16:44:45Z")

</div>

For posterity, there is a really helpful diagram in the knowledge base article [here](https://support.tulip.co/docs/a-guide-to-app-transitions).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/3/3b6b3f8cd4b6845968610a8602c2a0f66ae4e6b8.png)
