Is there a way to reference a custom assembly in an Epicor function? In my case I want to reference CSVHelper.dll that is located in my Customization/Externals folder.
Thanks in advance.
Is there a way to reference a custom assembly in an Epicor function? In my case I want to reference CSVHelper.dll that is located in my Customization/Externals folder.
Thanks in advance.
Hi Andrew, are you saying that the custom assembly is not available to you inside of that folder via the Functions? Is it available in a regular BPM?
Right, a normal BPM has the option to select from the Assemblies folder (Epicorâs Built-In Assemblies), or the Externals folder (any custom DLLs used server-side).
In Functions Maintenance I donât see a way to access the assemblies in the âExternalsâ folder.
Iâm guessing itâs by design (security, etc?), but was hoping I was missing something. If itâs OK for a BPM, why not a function?
Ah I see what youâre saying. It doesnât even have the option to select from non-shipped assemblies
Great question, I wish I could answer it
Iâve had to find a workaround for this, too. Commenting mostly in case anyone knows any better!
Or maybe that someone can tell us it will become possible in future versions.
Whatâs your workaround?
In your server configuration Aaron you can add a path to a folder Custom Directory and any DLL you put there will automatically be available server side. (Thatâs how we did it)
So does that meld the available contents of the default folder and the custom folder to be available in the Functions Assemblies area?
That makes those DLLâs available to the whole server so yes, BPMs, Functions etc. It can also be used to override Epicorâs own DLLâs if you are doing some fancy stuff with the SDK
So be careful dropping DLLâs with conflicting names in there.
Basically the server looks there first for the DLL and then in the regular Assemblies folder
In my case I was able to call a uBAQ from the function and use the necessary assembly in a custom method. Which was fine for what I needed that time, but would be messy at best and impossible at worst in other circumstances.
Ask your Senior Software Architect if Customdil⢠is right for you.
Symptoms might include
Do not use Customdil⢠while operating SaaS.
Experience the power of Customdilâ˘!
In the past Iâve copied my Externals folder right into the assemblies folder every time I build a new appserver from upgrade or whatever. It works but Joseâs way is âsanctionedâ Iâll probably do that on the next rebuild.
Adding onto this, is there a way to get custom variable types for use in Functions from this?
Iâve got my dll showing in the âAssembliesâ tab, but none of the custom classes show up as a variable type to choose from.
no
Would this also work on the Epicor Cloud? (Single/Multi tenant).
No.