Hello,
I want to creat a Meeting item in Outlook,
O.K all works fine, but i have a problem with
posting the Meeting Item into another folder.
Can anyone help !
I use followin code:
CREATE(application);
meeting := application.CreateItem(1);
meeting.Body := 'sjdhfjsafhdka';
...
meeting.Display;
CLEAR(application);
Best regards
Alex Schubert
ERP & Navision
Dolphin Communication Technologies GmbH
Otto-Hahnstr. 1 c
D-69190 Walldorf
0
Comments
creating contact in subfolder.
Its very hard to figure out how to do it without any examples.
Rgds
Benny Giebens
Benny Giebens
olContactFolder := olApp.GetNamespace'Mapi').
GetDefaultFolder(10).Folders.Item('Subfolder');
who must i define olContactFolder ,
(automation,Outlook,???folders?)
and in which format must i enter the new Subfoler
Thank Alex
Alex Schubert
ERP & Navision
Dolphin Communication Technologies GmbH
Otto-Hahnstr. 1 c
D-69190 Walldorf
application:Automation:'Microsoft Outlook 98 Object Model'.Application
ContactItem:Automation:'Microsoft Outlook 98 Object Model'.ContactItem
olContactFolder:Automation:'Microsoft Outlook 98 Object Model'.MAPIFolder
expfld : Text : 30
Code:
// create item ...
ContactItem := application.CreateItem(2);//contact item
ContactItem.FirstName := rec."Name";
ContactItem.Close(0); //Save contact
// move to subfolder ...
expfld := 'subfolder name';
olContactFolder := application.GetNamespace('MAPI').GetDefaultFolder(10).Folders.Item(expfld);
ContactItem.Move(olContactFolder);
But the var: expfld := 'text@test.com' must look like this ?
The Contact is alway placed in my standard folder Contact and i get an Error like item could not created ...
Alex Schubert
ERP & Navision
Dolphin Communication Technologies GmbH
Otto-Hahnstr. 1 c
D-69190 Walldorf
if does not - then error occurs.
I still cannot create a new folder from C/AL.