Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to get company from company name

Accepted Solution Solved
Tuned Listener
Posts: 3
Country: United States
Accepted Solution

How to get company from company name

I have a contact instance from which I can get the comany name the contact belongs to. But how to I get a company instance from the company name?

Accepted Solutions
Solution
Accepted by topic author john55021
‎09-25-2015 03:20 AM
Tuned Listener
Posts: 3
Country: United States

Re: How to get company from company name

Thanks Vivek, worked like a charm!

View solution in original post


All Replies
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: How to get company from company name

Hi John,

 

If you are simply getting the COmpany Name from the Contact object member Contact.Company maybe you could get the CompanyID via Contact.CompanyID

then you could use something like this:

//ActFrameWork object = oFram//oContact is already an assigned Contact objectGuid compID = oContact.CompanyID;Guis[] iDs = {compID};CompanyList compList = oFram.Companies.GetCompaniesByID(null,iDs);

 HTH

Vivek 

 

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
Solution
Accepted by topic author john55021
‎09-25-2015 03:20 AM
Tuned Listener
Posts: 3
Country: United States

Re: How to get company from company name

Thanks Vivek, worked like a charm!