Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linking contact to account does not display linked account

3 views
Skip to first unread message

Mike

unread,
Feb 23, 2007, 9:21:37 AM2/23/07
to
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]

unread,
Feb 23, 2007, 7:50:57 PM2/23/07
to
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;
}

--
Visit team blog at http://blogs.msdn.com/bcm
This posting is provided "AS IS" with no warranties, and confers no rights
"Mike" <m...@postmaster.co.uk> wrote in message news:%236OwjX1...@TK2MSFTNGP05.phx.gbl...

Balaji [MS]

unread,
Feb 23, 2007, 8:59:37 PM2/23/07
to

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

unread,
Feb 26, 2007, 11:15:52 AM2/26/07
to
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.


"Balaji [MS]" <bbalasub...@gmail.com> wrote in message
news:1172282377.3...@p10g2000cwp.googlegroups.com...

Mike

unread,
Feb 26, 2007, 12:07:08 PM2/26/07
to
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.

"Mike" <m...@postmaster.co.uk> wrote in message

news:OMUnZFcW...@TK2MSFTNGP06.phx.gbl...

0 new messages