Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Business Contact Manager / February 2007

Tip: Looking for answers? Try searching our database.

Linking contact to account does not display linked account

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 23 Feb 2007 14:21 GMT
I have used VB.NET 2005 to create a new business contact and link it to an
existing account. The code runs ok and the new contact is created. When I go
to the account I can see the new contact in the list of contacts. The
problem is that the linked account does not show on the business contact
record - eg the Account field underneath 'Linked Account' is blank. Many
thanks for any assistance.
Clinton Ford [MSFT] - 24 Feb 2007 00:50 GMT
After setting the "Parent Entity EntryID" as described in this sample...
http://msdn2.microsoft.com/en-us/library/aa431883.aspx

...be sure to also set the "Parent Account Name" as in following C# code:

if (newContact1.UserProperties["Parent Account Name"] == null)
{
   userProp = newContact1.UserProperties.Add("Parent Account Name", Microsoft.Office.Interop.Outlook.OlUserPropertyType.olText,
false, false);
   userProp.Value = newAccount.FirstName;
}

Signature

Visit team blog at http://blogs.msdn.com/bcm
This posting is provided "AS IS" with no warranties, and confers no rights

I have used VB.NET 2005 to create a new business contact and link it to an
existing account. The code runs ok and the new contact is created. When I go
to the account I can see the new contact in the list of contacts. The
problem is that the linked account does not show on the business contact
record - eg the Account field underneath 'Linked Account' is blank. Many
thanks for any assistance.
Balaji [MS] - 24 Feb 2007 01:59 GMT
> I have used VB.NET 2005 to create a new business contact and link it to an
> existing account. The code runs ok and the new contact is created. When I go
> to the account I can see the new contact in the list of contacts. The
> problem is that the linked account does not show on the business contact
> record - eg the Account field underneath 'Linked Account' is blank. Many
> thanks for any assistance.

There is sample code for this on MSDN that works correctly. You can
find the sample code at http://msdn2.microsoft.com/en-us/library/aa431883.aspx.
Mike - 26 Feb 2007 16:15 GMT
Many thanks for your assistance.

This code does indeed link the record. The contact appears under the
account. However the account name is not displayed in the contact record. I
think you have to set the Account Name after linking the record but this
only seems to work intermittently.

>> I have used VB.NET 2005 to create a new business contact and link it to
>> an
[quoted text clipped - 8 lines]
> find the sample code at
> http://msdn2.microsoft.com/en-us/library/aa431883.aspx.
Mike - 26 Feb 2007 17:07 GMT
Sorry Clinton, I missed your posting. Thank you very much indeed for the
information. I was setting the Account name instead of the parent account
name. It all works great. Again many thanks.

> Many thanks for your assistance.
>
[quoted text clipped - 15 lines]
>> find the sample code at
>> http://msdn2.microsoft.com/en-us/library/aa431883.aspx.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.