06-21-2016 08:02 PM - edited 06-21-2016 08:02 PM
Can someone give me some sample code on adding a contact record through the API v17 pro? I'm brand new to ACT and its SDK, with some of the research i've done on these forums i have been able to sucessfully been able to get the correct assemblies into my project and now want to test some sample code adding Contacts programmatically if possible. I will eventually try to do this through a plugin but some example of this for me to test with would be greatly appreciated..
06-22-2016 06:24 AM - edited 06-22-2016 06:36 AM
Something like this should work using a plugin
var ActApp = Act.UI.ActApplication.Instance; var newContact = ActApp.ActFramework.Contacts.CreateContact(); newContact.FullName = "John Doe"; newContact.Update();
06-22-2016 06:36 AM
Exactly what i needed, now if i was to create this within a plugin and i wanted to then display the newly created contact for them is there a primary key i need to pull from this new record and how would i bind that to their navigational view within ACT?
06-22-2016 06:53 AM
You would use the UIContactManager object.