08-31-2008 04:52 PM
Hi All,
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.
Thanks,
Scott
09-01-2008 01:53 AM
Hi Scott,
The ActApplication holds an ActFramework object from the Current logged on user:
//Act.ActApplication actApp
Act.Framework.ActFramework oFram = actApp.ActFramework;
oFram.Contacts.CreateContact(); //then you can go ahead and set the field details
//---or even---
Act.Framework.Contacts.Contact oContact = actApp.ActFramework.COntacts.CreateContact();
Sorry its in C# but hopefully you get the idea.
HTH
Vivek
09-01-2008 06:39 PM
Thanks, that's what I needed!
Scott