Community
Showing results for 
Search instead for 
Do you mean 
Reply

Current contact GUID from opportunity

Tuned Listener
Posts: 8
Country: United_Kingdom

Current contact GUID from opportunity

Hi,

 

I would like to get the GUID of the contact that is associated with an opportunity. 

 

At the moment I'm using to get some information, but some contact information of that current opportunity would be useful also:

 

Opportunity c = Act.UI.ActApplication.Instance.ApplicationState.CurrentOpportunity;

 Thank you!

Bronze Super Contributor
Posts: 1,265
Country: USA

Re: Current contact GUID from opportunity

c.GetContacts(Nothing) 

This will return a ContactList of all the contacts attached to the current opportunity. 

 

Dim AttachedContactList As Act.Framework.Contacts.ContactList

AttachedContactList = Me.CurrentOpportunity.GetContacts(Nothing)

 

Hope this helps

-- Jim Durkin