Redemption Foldes.Add doesn't work

Status
Not open for further replies.
E

escamoteur

I tried this here. The Store is created, fine, but the folder is not created although the returned RDOFolder is not null

I use Outlook 2007

RDOSession Session = new RDOSessionClass();// CreateObject("Redemption.RDOSession");

//Use the MAPI session from Outlook Object Model

Session.MAPIOBJECT = theApp.Instance.Application.Session.MAPIOBJECT;

RDOStore Store = (RDOStore) Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");

RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities", "IPM.Task.ArtistsOrganizer.BO");
 
REplace the line

RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities",

"IPM.Task.ArtistsOrganizer.BO");

with

RDOFolder folder = Store.IPMRootFolder.Folders.Add("Opportunities",

"IPM.Task.ArtistsOrganizer.BO");

Note that root folder of any store is not visible - Outlook creates

invisible and search folders there.

What you need is the root IPM folder (which is a subfolder of the root

folder).

You can look at the folders in OutlookSpy - click IMsgStore button in the

OutlookSpy toolbar, then click "Open Root Container" and go to the

GetHierarchyTable tab.

Dmitry Streblechenko (MVP)

-

"escamoteur" <mail@burkharts.net> wrote in message

news:B3110896-7970-4CB6-9E9F-BFDFBAF698A4@microsoft.com...
> I tried this here. The Store is created, fine, but the folder is not
> created although the returned RDOFolder is not null

> I use Outlook 2007

> RDOSession Session = new RDOSessionClass();//
> CreateObject("Redemption.RDOSession");
> //Use the MAPI session from Outlook Object Model
> Session.MAPIOBJECT =
> theApp.Instance.Application.Session.MAPIOBJECT;
> RDOStore Store = (RDOStore)
> Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");
> RDOFolder folder =
> Store.RootFolder.Folders.Add("Opportunities",
> "IPM.Task.ArtistsOrganizer.BO");

>
 
Does the GetRootFolder Method of OOM return in reality the IPMRootFolder?

Because this here was my former code

theApp.Instance.Application.Session.AddStoreEx(,Microsoft.Office.Interop.Outlook.OlStoreType.olStoreUnicode);

Outlook.MAPIFolder rootFolder = (Outlook.Folder) AO_Store.GetRootFolder();

rootFolder.Name = ;

//Create Folders

BO_Folder = (Outlook.Folder)rootFolder.Folders.Add("Oportunities", Outlook.OlDefaultFolders.olFolderTasks);

And that worked

"Dmitry Streblechenko" <dmitry@dimastr.com> schrieb im Newsbeitrag news:eoCreVjMKHA.1312@TK2MSFTNGP05.phx.gbl...
> REplace the line
> RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities",
> "IPM.Task.ArtistsOrganizer.BO");
> with
> RDOFolder folder = Store.IPMRootFolder.Folders.Add("Opportunities",
> "IPM.Task.ArtistsOrganizer.BO");

> Note that root folder of any store is not visible - Outlook creates
> invisible and search folders there.
> What you need is the root IPM folder (which is a subfolder of the root
> folder).
> You can look at the folders in OutlookSpy - click IMsgStore button in the
> OutlookSpy toolbar, then click "Open Root Container" and go to the
> GetHierarchyTable tab.

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "escamoteur" <mail@burkharts.net> wrote in message
> news:B3110896-7970-4CB6-9E9F-BFDFBAF698A4@microsoft.com...
> >I tried this here. The Store is created, fine, but the folder is not
> >created although the returned RDOFolder is not null
>

>> I use Outlook 2007
>

>> RDOSession Session = new RDOSessionClass();//
> > CreateObject("Redemption.RDOSession");
> > //Use the MAPI session from Outlook Object Model
> > Session.MAPIOBJECT =
> > theApp.Instance.Application.Session.MAPIOBJECT;
> > RDOStore Store = (RDOStore)
> > Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");
> > RDOFolder folder =
> > Store.RootFolder.Folders.Add("Opportunities",
> > "IPM.Task.ArtistsOrganizer.BO");
>

>>


>
 
Yes, Store.GetRotFolder returns the IPM root folder, not the topmost folder

in the store.

Dmitry Streblechenko (MVP)

-

"escamoteur" <mail@burkharts.net> wrote in message

news:DE8BBC61-B147-46A6-BAB2-60ED5A1D3365@microsoft.com...
> Does the GetRootFolder Method of OOM return in reality the IPMRootFolder?

> Because this here was my former code

> theApp.Instance.Application.Session.AddStoreEx(,Microsoft.Office.Interop.Outlook.OlStoreType.olStoreUnicode);
> Outlook.MAPIFolder rootFolder = (Outlook.Folder)
> AO_Store.GetRootFolder();
> rootFolder.Name = ;
> //Create Folders
> BO_Folder =
> (Outlook.Folder)rootFolder.Folders.Add("Oportunities",
> Outlook.OlDefaultFolders.olFolderTasks);

> And that worked

> "Dmitry Streblechenko" <dmitry@dimastr.com> schrieb im Newsbeitrag
> news:eoCreVjMKHA.1312@TK2MSFTNGP05.phx.gbl...
> > REplace the line
> > RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities",
> > "IPM.Task.ArtistsOrganizer.BO");
> > with
> > RDOFolder folder = Store.IPMRootFolder.Folders.Add("Opportunities",
> > "IPM.Task.ArtistsOrganizer.BO");
>

>> Note that root folder of any store is not visible - Outlook creates
> > invisible and search folders there.
> > What you need is the root IPM folder (which is a subfolder of the root
> > folder).
> > You can look at the folders in OutlookSpy - click IMsgStore button in the
> > OutlookSpy toolbar, then click "Open Root Container" and go to the
> > GetHierarchyTable tab.
>

>> > > Dmitry Streblechenko (MVP)
> >

> >

> >

> > -
> > "escamoteur" <mail@burkharts.net> wrote in message
> > news:B3110896-7970-4CB6-9E9F-BFDFBAF698A4@microsoft.com...
> >>I tried this here. The Store is created, fine, but the folder is not
> >>created although the returned RDOFolder is not null
> >
>>> I use Outlook 2007
> >
>>> RDOSession Session = new RDOSessionClass();//
> >> CreateObject("Redemption.RDOSession");
> >> //Use the MAPI session from Outlook Object Model
> >> Session.MAPIOBJECT =
> >> theApp.Instance.Application.Session.MAPIOBJECT;
> >> RDOStore Store = (RDOStore)
> >> Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");
> >> RDOFolder folder =
> >> Store.RootFolder.Folders.Add("Opportunities",
> >> "IPM.Task.ArtistsOrganizer.BO");
> >
>>>

> >
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
A Edit subject - and change conversationTopic - using VBA and redemption Outlook VBA and Custom Forms 2
N Redemption VBA basics...something's missing Using Outlook 0
D Redemption? Need rapid pull of Outlook Contacts, email + notes for VBA Using Outlook 1
J 64-bit version of Redemption? Outlook VBA and Custom Forms 2
E Redemption access AppointmentItem Label from outlook Outlook VBA and Custom Forms 6
E Redemption MAPI access(c#) Outlook VBA and Custom Forms 4
W Redemption::RDOMail.PrintOut() / DoAction(maPrint) not working Outlook VBA and Custom Forms 1
B Use Redemption to get sender's email address Outlook VBA and Custom Forms 3
M EMail1Address and EMail1AddressType strangeness using Redemption Outlook VBA and Custom Forms 2
A Creating Redemption.MAPIUtils failed with Windows 7 x64 Outlook VBA and Custom Forms 5
D href tags does not result in the full url with Redemption Outlook VBA and Custom Forms 4
N Redemption.RDOSession logon() stops emails sending-they stay in Ou Outlook VBA and Custom Forms 3
E Should I switch to redemption Outlook VBA and Custom Forms 11
E Should I switch to redemption Outlook VBA and Custom Forms 11
C Redemption - Rules for outlook Outlook VBA and Custom Forms 1
G Error in Outlook Object Model with redemption and google apps prem Outlook VBA and Custom Forms 3
P Redemption Send EMail Outlook VBA and Custom Forms 10
S redemption reference Outlook VBA and Custom Forms 1
T Configure mailbox OutofOffice with Redemption Outlook Outlook VBA and Custom Forms 1
D redemption dll not registering in windows vista Outlook VBA and Custom Forms 3
Y Redemption MessageItem SaveAs problem Outlook VBA and Custom Forms 8
R Newbie Redemption ISafeMailItemPtr question Outlook VBA and Custom Forms 6
Q GAL.ResolveName issue with REDEMPTION Outlook VBA and Custom Forms 5
Q REDEMPTION HANGING during LOGON Outlook VBA and Custom Forms 2
P Redemption not working on OL2007 Outlook VBA and Custom Forms 2
P Redemption Send EMail fails Outlook VBA and Custom Forms 4
S delete appointmentitem permanently using redemption Outlook VBA and Custom Forms 2
D redemption - foldercreate event + delegate user Outlook VBA and Custom Forms 8
C Assign To and CC list while using Redemption.dll library Outlook VBA and Custom Forms 10
U Re: Read fields with Redemption Outlook VBA and Custom Forms 1
V redemption MAPIUtils Outlook VBA and Custom Forms 3
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
G Outlook 2021 Add Picture to Custom Contact Form Outlook VBA and Custom Forms 2
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
P VBA to add email address to Outlook 365 rule Outlook VBA and Custom Forms 0
S Outlook 2019 Custom outlook Add-in using Visual Studio Outlook VBA and Custom Forms 0
G automatically choosing "add to autocorrect" option Using Outlook 0
F Want to add second email to Outlook for business use Using Outlook 4
K Add an entry to a specific calendar Using Outlook 1
F Add a category before "Send an Email When You Add an Appointment to Your Calendar" Outlook VBA and Custom Forms 0
J Want to create a button on the nav bar (module add-in) to run code Outlook VBA and Custom Forms 2
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
J Outlook 365 Add keywords from Listbox to the message body where cursor is placed Outlook VBA and Custom Forms 0
O Add Day Number of the year for 2023-2033 Outlook VBA and Custom Forms 5
J GoDaddy migrated to Office365 - Outlook Wont Add Account Exchange Server Administration 21
F Outlook 2019 Outlook 2019 Add and Sync to New computer Comcast server Using Outlook 2
Witzker Add a text line at the end of the note field in all selected Contacts Outlook VBA and Custom Forms 7
A iCloud Outlook Add In is causing Outlook 2021 to crash and got disabled Using Outlook 10
N How to add or delete items to Move dropdown Menu Using Outlook 0

Similar threads

Back
Top