Group:  Microsoft Outlook ยป microsoft.public.outlook.bcm
Thread: Linking contact to account does not display linked account

Geek News

Linking contact to account does not display linked account
"Mike" <mbt[ at ]postmaster.co.uk> 2/23/2007 2:21:37 PM
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.

Re: Linking contact to account does not display linked account
"Clinton Ford [MSFT]" <ClintonFordMSFT[ at ]discussions.microsoft.com> 2/24/2007 12:50:57 AM
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" <mbt[ at ]postmaster.co.uk> wrote in message news:%236OwjX1VHHA.5008[ at ]TK2MSFTNGP05.phx.gbl...
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.


Re: Linking contact to account does not display linked account
"Balaji [MS]" <bbalasubramanyan[ at ]gmail.com> 2/24/2007 1:59:37 AM
On Feb 23, 6:21 am, "Mike" <m...[ at ]postmaster.co.uk> wrote:
[Quoted Text]
> 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.

Re: Linking contact to account does not display linked account
"Mike" <mbt[ at ]postmaster.co.uk> 2/26/2007 4:15:52 PM
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]" <bbalasubramanyan[ at ]gmail.com> wrote in message
news:1172282377.323909.137160[ at ]p10g2000cwp.googlegroups.com...
[Quoted Text]
> On Feb 23, 6:21 am, "Mike" <m...[ at ]postmaster.co.uk> wrote:
>> 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.
>

Re: Linking contact to account does not display linked account
"Mike" <mbt[ at ]postmaster.co.uk> 2/26/2007 5:07:08 PM
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" <mbt[ at ]postmaster.co.uk> wrote in message
news:OMUnZFcWHHA.4964[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
> 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]" <bbalasubramanyan[ at ]gmail.com> wrote in message
> news:1172282377.323909.137160[ at ]p10g2000cwp.googlegroups.com...
>> On Feb 23, 6:21 am, "Mike" <m...[ at ]postmaster.co.uk> wrote:
>>> 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.
>>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net