# How to run custom java logic on entity creation?

**URL:** <https://forum.metasfresh.org/t/how-to-run-custom-java-logic-on-entity-creation/1781>\
**Category:** Developers\
**Created:** [February 13, 2020, 7:43am UTC](https://forum.metasfresh.org/t/how-to-run-custom-java-logic-on-entity-creation/1781 "2020-02-13T07:43:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![corlaez](https://forum.metasfresh.org/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@corlaez](https://forum.metasfresh.org/u/corlaez)\
**Post date:** [February 13, 2020, 7:43am UTC](https://forum.metasfresh.org/t/how-to-run-custom-java-logic-on-entity-creation/1781/1 "2020-02-13T07:43:48Z")

</div>

I am new to metafresh, and I want to know if there is a way to run custom code on entity creation.  
I am not sure if it is going to be project or shipment. I want to hit an endpoint of a third party service.

Do I need to fork the code or is there a decoupled way to implement this?
