Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Thanks @Curtis_Waguespack for this route.

In the beginning I had a bit of trouble with an error (Object reference not set to an instance of an object). It took me a while to realize that the document (which every iLogic command apparently has to refer to) had not yet been loaded when "Public Sub Activate" was activated.

I have now defined some events in which the Rules are called. The "Public Sub Activate" now only initiates the necessary things. In fact, I now have an EventHandler-AddIn. Some Events already take place without an active document. The need for executing a Rule is then already known and is then placed in a kind of queue by means of a condition. This saves a lot of unnecessary rule activity.

Thanks again for everyone's input! I have learned a lot again.

Too bad I wasn't able to find out why @JelteDeJong suggestion didn't work because that seemed like a good solution just as well.

 

René van der Starre