# Calling app functions

**URL:** <https://community.dynatrace.com/t/calling-app-functions/35765>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app, app-functions\
**Created:** [July 6, 2022, 1:25pm UTC](https://community.dynatrace.com/t/calling-app-functions/35765 "2022-07-06T13:25:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian\_barth](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_barth/32/34060_2.png) [@christian\_barth](https://community.dynatrace.com/u/christian_barth)\
**Post date:** [July 6, 2022, 1:25pm UTC](https://community.dynatrace.com/t/calling-app-functions/35765/1 "2022-07-06T13:25:51Z")

</div>

Hi team,is it allowed to call one app function from another app function? (As long as they are within the same app of course).I didn’t manage to do this via the relative URL.Is this supposed to work?Thanks

---

<div class="post-metadata">

**Author:** ![christian\_barth](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_barth/32/34060_2.png) [@christian\_barth](https://community.dynatrace.com/u/christian_barth)\
**Post date:** [July 6, 2022, 1:27pm UTC](https://community.dynatrace.com/t/calling-app-functions/35765/2 "2022-07-06T13:27:18Z")

</div>

If you want to reuse logic across function, please have a look at following&nbsp; article:&nbsp;[https://developer.dynatrace.com/learn/reuse-code/](https://developer.dynatrace.com/learn/reuse-code/)

---

<div class="post-metadata">

**Author:** ![stefan\_baumgart](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_baumgart/32/33707_2.png) [@stefan\_baumgart](https://community.dynatrace.com/u/stefan_baumgart)\
**Post date:** [January 10, 2023, 7:48am UTC](https://community.dynatrace.com/t/calling-app-functions/35765/3 "2023-01-10T07:48:13Z")

</div>

Calling your own functions from your own functions is an anti-pattern: You trigger a new invocation with all the HTTP overhead plus you pay for invocations. Sharing code across functions is the right way to do it.
