Community
Showing results for 
Search instead for 
Do you mean 
Reply

Refresh required to update contact list

Tuned Listener
Posts: 11
Country: United States

Refresh required to update contact list

I have a plugin that creates a new contact via the SDK. It works (the contact is created) but I need to toggle between the Contact Detail View and Contact List View to get the new contact to show up in the contact list.

 

For example, if the Contact Detail View is current when I run the plugin I need to switch to the Contact List View to get the "|<  <  X of Y  >  >|" label to update. If  the Contact List View is current when I run the plugin, I must switch to the Contact Detail View then switch back to the Contact List View to see the label update and see the new contact in the list.

 

This seems like it might just be a refresh issue but I'm not sure how to make that happen.

 

Any suggestions?

Thanks,

Scott

 

 

Nickel Super Contributor
Posts: 441
Country: UK

Re: Refresh required to update contact list

Call ActApp.RefreshLoadedViews() when your done eg

Dim Contact As Act.framework.contacts.Contact Contact = ActApp.ActFramework.Contacts.CreateContact Contact.FullName = "John Smith" Contact.Update() ActApp.RefreshLoadedViews()

 

Tom