Hi, I'm using an external assembly like everyone recommends, but now I'm facing a problem:
We have a custom entity License with a businessrule called SendAutoMail. This is it's signature:
public static void SendAutoMail(ILicense license, EMailTemplateSubcategoryLicense mailType, string recipients)
The 'EMailTemplateSubcategoryLicense' is a custom enumeration placed in the same external assembly as the businessrule. When I use this method as a businessrule AA tells me:
C:\BuildDirectory\interfaces\ILicense.cs(223,27):The type or namespace name 'EMailTemplateSubcategoryLicense' could not be found (are you missing a using directive or an assembly reference?)
I tried adding a reference to the library '%BASESAGEINSTALLPATH%\SalesLogix\SupportFiles\SLXLibrary.dll' to the codesnippets.xml, restarted the AA, perform a full build - error appeared. I was looking for the assemblies references to add (like described here: http://bit.ly/alKCWW), but it seems you can only do this when coding within the AA.
Am I missing something or is it not possible to use custom enumerations? |