09-26-2008 04:28 AM
I'm writing a standalone .exe application that needs to get the current contact information on the contact displayed in ACT!2008. I need to get the value of several fields, including a custom field, work with the information, and write an entry to the History tab.
The challenge I'm running into is... how to get the current contact info. Would anyone have a few lines of code to spare?
I'd like to code in VB but C# is OK - I can convert.
THANKS for your help!
03-15-2013 05:52 AM
I would like to do exactly what you are talking about, although I have ACT2011. Also, I'm a newbie and I've never written a standalone .exe file before, how do you create one?
03-15-2013 06:19 AM
There's no way to get the current contact from an application that only has framework level access, it simply has no context to know what is being displayed in the application. In order to do this you must write a plugin that implements IPlugin and therefore has access to the ActApplication object.
03-15-2013 06:31 AM
There certainly is, contained within the SDK download are two code samples, one of which is a plugin that adds a new menu item.
The short version is you need to add a reference to Act.UI and then have your class implement Act.UI.IPlugin.