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");
 
D

Dmitry Streblechenko

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");

>
 
E

escamoteur

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");
>

>>


>
 
D

Dmitry Streblechenko

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
N How to add or delete items to Move dropdown Menu Using Outlook 0
G Add contacts birthday to calendar Using Outlook 4
V How to add 'Previous Item' and 'Next Item' to the Quick Access Toolbar Using Outlook 1
Commodore Safe way to add or update holidays; Windows Notifications issue Using Outlook 8
kkqq1122 How would I add Search for attachment name Outlook VBA and Custom Forms 3
L did MS ever add way to text via Outlook Using Outlook 5
P How to add a column named categories when searching in Outlook Using Outlook 0
M add new attendee to existing meetings with VBA Outlook VBA and Custom Forms 5
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
witzker Outlook 2019 Pls. add a Prefix for OUTLOOK 2019 here Using Outlook 1
P Add inanimate objects to meetings? Using Outlook 1
O Outlook 2010 Add delete button to the side of the message list Using Outlook 1
BartH Add a string to the conditions in .Conditions.BodyOrSubject.Text Outlook VBA and Custom Forms 2
A "Get Add-Ins" - Which Version of Outlook to use Using Outlook 1
D Do I need Exchange Add-In? Using Outlook 6
C-S-R Manage Add-ins (Remove Wunderlist) Using Outlook 6
A iCloud add in problems Using Outlook 4
L Macro to add Date & Time etc to "drag to save" e-mails Outlook VBA and Custom Forms 17

Similar threads

Top