08-31-2008 04:52 PM
1. When creating a plugin, is it necessary to logon to the framework in order to create contacts / companies via SDK in the current database?
2. If it is, can I just use the current user and his / her credentials WITHOUT hardcoding them in the plugin code? In other words, when the user clicks the menu item, just use the username and password of the said user as they are currently logged in.
09-01-2008 01:53 AM
The ActApplication holds an ActFramework object from the Current logged on user:
Act.Framework.ActFramework oFram = actApp.ActFramework;
oFram.Contacts.CreateContact(); //then you can go ahead and set the field details
Act.Framework.Contacts.Contact oContact = actApp.ActFramework.COntacts.CreateContact();
Sorry its in C# but hopefully you get the idea.