03-20-2008 06:54 AM
03-20-2008 07:18 AM
03-20-2008 07:20 AM
//Example 2
//This example create a contact and company record then links the two of them together.
Contact newContact;
Company newCompany;
//Create a new Contact.
newContact = ActFwk.Contacts.CreateContact();
newContact.FullName = "New Contact";
newContact.Company = "New Company";
newContact.Update();
//Create a new Company.
newCompany = ActFwk.Companies.CreateCompany();
newCompany.Name = "New Company";
newCompany.Update();
//Link them. This will create the link to the Company name in the Contact record.
newContact.SetCompanyLink(newCompany);
newContact.Update(); //Not in original example
MessageBox.Show("Done");
03-20-2008 11:08 AM
08-09-2008 05:28 AM
09-20-2008 07:18 PM - edited 09-20-2008 07:20 PM
Good day Aubol,
I would suggest that you ensure that ALL of the paralegals etc all have their own company records.
Then I would use STATIC Contact Links on Company Records to provide that Click-to-go-to link functionality you need.
As you probably know, those Static links work rather like the COMPANYID on a Contact record except that from the Contact's perspective, you get a One-To-Many relationship (as opposed to the One-To-One relationship with the Contact's CompanyID at contact level).
Perhaps they really should be compared to Group Links - but much COOLER.
.
compList(0).SetStaticContacts(cList2) ' The Company (just looked up by GUID) gets the Contact(s) in the Contact lookup.
compList(0).Update()
.
Cheers,
Kevin
================
Kevin Ritch
V8Software.com
Support@V8Software.com