Community
Showing results for 
Search instead for 
Do you mean 
Reply

Show a Contact in plugin using string of GUID

Accepted Solution Solved
Copper Super Contributor
Posts: 88
Country: USA
Accepted Solution

Show a Contact in plugin using string of GUID

Hi: I'm wanting to show a Contact in ACT! using a string containing the GUID that I get through a text file I read in the Plugin.

 

What is the best way to move to and show that particular Contact using the string value?

 

Thanks!


Accepted Solutions
Highlighted
Solution
Accepted by topic author kimkamp22
‎09-15-2016 11:35 AM
Copper Super Contributor
Posts: 88
Country: USA

Re: Show a Contact in plugin using string of GUID

I've noticed that, sometimes when I post a question here, I finally figure out the answer on my own!

 

Here's the answer:

 

            Dim guids(0) As Guid
            guids(0) = New Guid(StringOfGuid)
            Dim cContactU As Act.Framework.Contacts.Contact = Nothing
            cContactU = _actapp.ActFramework.Contacts.GetContactsByID(Nothing,guids)(0)
            _actApp.UIContactManager.ShowContact(cContactU)
            _actApp.Update()

 

Sorry to bother you all - have a great day!

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author kimkamp22
‎09-15-2016 11:35 AM
Copper Super Contributor
Posts: 88
Country: USA

Re: Show a Contact in plugin using string of GUID

I've noticed that, sometimes when I post a question here, I finally figure out the answer on my own!

 

Here's the answer:

 

            Dim guids(0) As Guid
            guids(0) = New Guid(StringOfGuid)
            Dim cContactU As Act.Framework.Contacts.Contact = Nothing
            cContactU = _actapp.ActFramework.Contacts.GetContactsByID(Nothing,guids)(0)
            _actApp.UIContactManager.ShowContact(cContactU)
            _actApp.Update()

 

Sorry to bother you all - have a great day!