03-20-2008 06:54 AM
03-20-2008 07:20 AM
//This example create a contact and company record then links the two of them together.
//Create a new Contact.
newContact = ActFwk.Contacts.CreateContact();
newContact.FullName = "New Contact";
newContact.Company = "New Company";
//Create a new Company.
newCompany = ActFwk.Companies.CreateCompany();
newCompany.Name = "New Company";
//Link them. This will create the link to the Company name in the Contact record.
newContact.Update(); //Not in original example
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.