Community
Showing results for 
Search instead for 
Do you mean 
Reply

Detecting a Contact Import

Copper Contributor
Posts: 42
Country: United States

Detecting a Contact Import

I've been looking into developing a plugin that can react to when a Contact gets imported to the database.  I played around with reacting to a record being saved, as per this topic:

http://community.act.com/t5/Sage-ACT-Developer-s-Forum/Contact-onSave-Event/m-p/105744/highlight/tru...

 

However, when I implemented it, my test plugin seemed to be firing the CurrentContact.Updated event whenever I switched records.  Should this be executing whenever I change records?  Additionally, is there some way I can use this, or something else I overlooked, to detect when a Contact has been imported to the database?

 

So far the help on this forum has been good, so I hope that trend can continue with this hurdle.

Employee
Posts: 1,163
Country: USA

Re: Detecting a Contact Import

Yes, the ContactUpdate event should be called when moving between contacts, it saves the current record and committs the data on the UI to the database.

 

With regards to detecting newly imported contacts, the only things I'm coming up with immediately are post hoc solutions since we can't detect the import event occurring. If your ContactList is all contacts, there is an event for AddNewComplete that may detect this.

Matthew Wood
Act! SDK Support
Community Moderator