A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to add a contact to a journal item?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 13th 08, 07:53 AM posted to microsoft.public.outlook.program_addins
ringerxyz
external usenet poster
 
Posts: 2
Default How to add a contact to a journal item?

Hi
I use the following code to create a journal item in outlook:

pApp.CreateInstance(__uuidof(Application));
pApp-CreateItem(olJournalItem,(IDispatch**)&pCallInfo) ;

pCallInfo-put_ContactNames(bsCaller);
pCallInfo-put_Subject(bsSubject);
pCallInfo-put_Body(bsBody);

pCallInfo-put_Type(bsType);

pCallInfo-Save();

Here my question is: i want to relate a contact to the journal item(which is
a phone call entry),but i cann't found any calls i can use to achieve this
goal,
any tips?
thanks in advance

Ads
  #2  
Old September 15th 08, 02:46 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to add a contact to a journal item?

The Links collection is what you want to work with. That has an Add method
that takes a contact item. Once the Link is added you can see the journal
item linkage in the Activities tab of the contact item and the link to the
contact item in the journal item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"ringerxyz" wrote in message
...
Hi
I use the following code to create a journal item in outlook:

pApp.CreateInstance(__uuidof(Application));
pApp-CreateItem(olJournalItem,(IDispatch**)&pCallInfo) ;

pCallInfo-put_ContactNames(bsCaller);
pCallInfo-put_Subject(bsSubject);
pCallInfo-put_Body(bsBody);

pCallInfo-put_Type(bsType);

pCallInfo-Save();

Here my question is: i want to relate a contact to the journal item(which
is
a phone call entry),but i cann't found any calls i can use to achieve this
goal,
any tips?
thanks in advance


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
journal entries not showing on contact journal page. jeffrey Outlook - Using Contacts 3 November 18th 08 03:41 PM
New Journal Entry for Contact Rich S[_2_] Outlook - Using Contacts 2 April 25th 08 03:31 AM
why can't I see my journal entries in contact? Wiry Outlook - Using Contacts 3 August 17th 06 05:20 PM
Contact activities vs Journal hobbesotr Outlook - Using Contacts 2 June 5th 06 09:07 PM
automatically add a contact to the journal T8ntlikly Outlook - Using Contacts 0 January 12th 06 12:52 PM


All times are GMT +1. The time now is 08:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.