# oTrans object available in custom class? **Category:** [Epicor ERP 10](https://www.epiusers.help/c/e10/5) **Created:** 2016-12-19 18:48 UTC **Views:** 1344 **Replies:** 4 **URL:** https://www.epiusers.help/t/otrans-object-available-in-custom-class/36665 --- ## Post #1 by @Aaron_Moreng Hi all, Is there a way to make the oTrans object available to custom classes? I'd like to call an Epicor adapter in my custom class but not quite sure how to do this without oTrans being available. Thanks --- ## Post #2 by @josecgomez What do you mean by "Custom Class"? --- ## Post #3 by @Aaron_Moreng A class that is not part of the standard Script class in a form customization. --- ## Post #4 by @josecgomez But is your class defined within a customization? If so you can just pass the oTrans in when you invoke your object. --- ## Post #5 by @Aaron_Moreng Ah that was it, I needed to pass oTrans as part of calling the method for that class. Thank you! --- **Canonical:** https://www.epiusers.help/t/otrans-object-available-in-custom-class/36665 **Original content:** https://www.epiusers.help/t/otrans-object-available-in-custom-class/36665