# Custom DLL file in Function

**URL:** <https://www.epiusers.help/t/custom-dll-file-in-function/124912>\
**Category:** Kinetic ERP\
**Tags:** function, epicor\
**Created:** [April 16, 2025, 1:10pm UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912 "2025-04-16T13:10:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![24x7](https://www.epiusers.help/user_avatar/www.epiusers.help/24x7/32/30637_2.png) [@24x7](https://www.epiusers.help/u/24x7)\
**Post date:** [April 16, 2025, 1:10pm UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/1 "2025-04-16T13:10:23Z")

</div>

Hi I am trying to Refer my Custom DLL file in Function,  
The DLL File is already copied in the Customization \> Externals and same is easily referenced in BPM’s.  
How to add external references in Epicor Function?

We are still using 2021.1

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [April 16, 2025, 9:54pm UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/2 "2025-04-16T21:54:07Z")

</div>

It should show up in assemblies.

---

<div class="post-metadata">

**Author:** ![tkoch](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tkoch](https://www.epiusers.help/u/tkoch)\
**Post date:** [April 17, 2025, 2:42am UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/3 "2025-04-17T02:42:21Z")

</div>

For Functions the DLL must go in server/assemblies directory

---

<div class="post-metadata">

**Author:** ![24x7](https://www.epiusers.help/user_avatar/www.epiusers.help/24x7/32/30637_2.png) [@24x7](https://www.epiusers.help/u/24x7)\
**Post date:** [April 17, 2025, 6:36am UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/4 "2025-04-17T06:36:15Z")

</div>

This is what I thought too - Thanks for endorsement.  
so for BPM also, we can consider the same dll in assemblies, and avoid duplicating the files in external. right?

---

<div class="post-metadata">

**Author:** ![tkoch](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tkoch](https://www.epiusers.help/u/tkoch)\
**Post date:** [April 17, 2025, 9:22am UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/5 "2025-04-17T09:22:33Z")

</div>

I think the bpm should also see the dll if it is in server/assemblies. You would just need to verify by removing it from externals and test if you can reference it

---

<div class="post-metadata">

**Author:** ![24x7](https://www.epiusers.help/user_avatar/www.epiusers.help/24x7/32/30637_2.png) [@24x7](https://www.epiusers.help/u/24x7)\
**Post date:** [April 17, 2025, 10:57am UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/6 "2025-04-17T10:57:19Z")

</div>

Great - Logically - It should work. I will try and update.  
However, I am experiencing another issue in the function. Functions execute synchronously and does not wait for the REST API Response. Any idea ?

---

<div class="post-metadata">

**Author:** ![Mark\_Wonsil](https://www.epiusers.help/user_avatar/www.epiusers.help/mark_wonsil/32/51594_2.png) [@Mark\_Wonsil](https://www.epiusers.help/u/Mark_Wonsil)\
**Post date:** [April 17, 2025, 1:36pm UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/7 "2025-04-17T13:36:28Z")

</div>

Just out of curiosity, what does this external library do?

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [April 17, 2025, 4:24pm UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/8 "2025-04-17T16:24:21Z")

</div>

![arnold schwarzenegger who is your daddy GIF](https://media1.giphy.com/media/v1.Y2lkPWU5MGVkYmEzZXJrYXhlYmpjaWVpaHp5eXNkeTRld3psN3pzdmZ2cDY4NjZ2cG15cSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/1zhaZh6c3Nz8EVloEV/giphy.webp)

---

<div class="post-metadata">

**Author:** ![24x7](https://www.epiusers.help/user_avatar/www.epiusers.help/24x7/32/30637_2.png) [@24x7](https://www.epiusers.help/u/24x7)\
**Post date:** [April 18, 2025, 3:29am UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912/9 "2025-04-18T03:29:40Z")

</div>

A little tweaking in the code helped to work it…
