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

I did something like that, i used onactivatedocument(here i used ActiveEditDocument) and onpreselectevents - here i run code if selected entity was comp occurrence and count was =1