redemption - foldercreate event + delegate user

Status
Not open for further replies.
D

d2xhbg

hi,

I have a question regarding FOLDERCREATE event of mail store. I need to

listen this event for both primary mailbox & delegate mailbox.

So I have enumerated mail stores and subscribed FOLDERCREATE for the above

stores. But when a new folder is created in delegate user mailbox (outlook

folder tree view), it's not triggering FOLDER CREATE event handler.

This works perfect for primary mailbox. I don't know the reason why it's not

triggering for delegate mailbox.

Do I need to set any permissions?

Thanks
 
D

d2xhbg

I have two exchange users - TestUserA & TestUserB. In outlook addin, i'm

enumerating stores using redemption technique.

When I enumerate stores and if storekind is PrimaryMailBox or

DelegateMailBox, I will get that mailbox store and subscribe foldercreate

event.

Now foldercreate is subscribed for primary mailbox & delegate mailbox.

TestUserA is logged on with delegate user feature enabled for TestUserB. i.e

TestUserA has subscribed FOLDER CREATE for Primary & delegate mailbox.

TestUserA can access TestUserB mailbox also. WHen TestUserA creates a new

folder under TestUserB\INBOX folder. FOLDER CREATE event is not get triggered

in TestUserA logged on session.

If TestUserB has logged on another machine, then that session will get

FOLDER CRETAE notification.,

I don't know why this is not triggered for TestUserA (with delagate

user-TestUserB) user.

"wlan" wrote:


> hi,

> I have a question regarding FOLDERCREATE event of mail store. I need to
> listen this event for both primary mailbox & delegate mailbox.

> So I have enumerated mail stores and subscribed FOLDERCREATE for the above
> stores. But when a new folder is created in delegate user mailbox (outlook
> folder tree view), it's not triggering FOLDER CREATE event handler.

> This works perfect for primary mailbox. I don't know the reason why it's not
> triggering for delegate mailbox.

> Do I need to set any permissions?

> Thanks
 
K

Ken Slovak - [MVP - Outlook]

How are you opening that delegate mailbox? Is it being opened as part of the

Outlook profile for that test user?

"wlan" <wlan> wrote in message

news:16F78112-10C9-4474-8DB4-E37E617A3DC2@microsoft.com...
> I have two exchange users - TestUserA & TestUserB. In outlook addin, i'm
> enumerating stores using redemption technique.

> When I enumerate stores and if storekind is PrimaryMailBox or
> DelegateMailBox, I will get that mailbox store and subscribe foldercreate
> event.

> Now foldercreate is subscribed for primary mailbox & delegate mailbox.
> TestUserA is logged on with delegate user feature enabled for TestUserB.
> i.e
> TestUserA has subscribed FOLDER CREATE for Primary & delegate mailbox.

> TestUserA can access TestUserB mailbox also. WHen TestUserA creates a new
> folder under TestUserB\INBOX folder. FOLDER CREATE event is not get
> triggered
> in TestUserA logged on session.

> If TestUserB has logged on another machine, then that session will get
> FOLDER CRETAE notification.,

> I don't know why this is not triggered for TestUserA (with delagate
> user-TestUserB) user.

> "wlan" wrote:
>
> > hi,
>

>> I have a question regarding FOLDERCREATE event of mail store. I need to
> > listen this event for both primary mailbox & delegate mailbox.
>

>> So I have enumerated mail stores and subscribed FOLDERCREATE for the
> > above
> > stores. But when a new folder is created in delegate user mailbox
> > (outlook
> > folder tree view), it's not triggering FOLDER CREATE event handler.
>

>> This works perfect for primary mailbox. I don't know the reason why it's
> > not
> > triggering for delegate mailbox.
>

>> Do I need to set any permissions?
>

>> Thanks
 
D

d2xhbg

Hi ken,

My profile is configured with both testusera & testuserB mailbox. I have

subscribed folder create event in OnCOnnection of addin.
wrote:


> How are you opening that delegate mailbox? Is it being opened as part of the
> Outlook profile for that test user?

> >

>

> "wlan" <wlan> wrote in message
> news:16F78112-10C9-4474-8DB4-E37E617A3DC2@microsoft.com...
> >I have two exchange users - TestUserA & TestUserB. In outlook addin, i'm
> > enumerating stores using redemption technique.
> > When I enumerate stores and if storekind is PrimaryMailBox or
> > DelegateMailBox, I will get that mailbox store and subscribe foldercreate
> > event.
> > Now foldercreate is subscribed for primary mailbox & delegate mailbox.
> > TestUserA is logged on with delegate user feature enabled for TestUserB.
> > i.e
> > TestUserA has subscribed FOLDER CREATE for Primary & delegate mailbox.
> > TestUserA can access TestUserB mailbox also. WHen TestUserA creates a new
> > folder under TestUserB\INBOX folder. FOLDER CREATE event is not get
> > triggered
> > in TestUserA logged on session.
> > If TestUserB has logged on another machine, then that session will get
> > FOLDER CRETAE notification.,
> > I don't know why this is not triggered for TestUserA (with delagate
> > user-TestUserB) user.
> > "wlan" wrote:
> >
> >> hi,
> >
> >> I have a question regarding FOLDERCREATE event of mail store. I need to
> >> listen this event for both primary mailbox & delegate mailbox.
> >
> >> So I have enumerated mail stores and subscribed FOLDERCREATE for the
> >> above
> >> stores. But when a new folder is created in delegate user mailbox
> >> (outlook
> >> folder tree view), it's not triggering FOLDER CREATE event handler.
> >
> >> This works perfect for primary mailbox. I don't know the reason why it's
> >> not
> >> triggering for delegate mailbox.
> >
> >> Do I need to set any permissions?
> >
> >> Thanks


>
 
K

Ken Slovak - [MVP - Outlook]

Please show the code you're using to establish that event handler, maybe it

will provide some clues.

"wlan" <wlan> wrote in message

news:9DCA1EA1-E904-498F-88A9-812164041A03@microsoft.com...
> Hi ken,

> My profile is configured with both testusera & testuserB mailbox. I have
> subscribed folder create event in OnCOnnection of addin.
>
 
D

d2xhbg

Hi,

The following code is used for subscribing events of normal and delegate user.

Redemption.RDOSession rdoSession = new RDOSession();

if (rdoSession != null)

{

rdoSession.MAPIOBJECT =

this.applicationObject.Session.MAPIOBJECT;

//get stores

Redemption.RDOStores oRDOStores = rdoSession.Stores;

foreach (Redemption.RDOStore store in oRDOStores)

{

if (store.StoreKind ==

TxStoreKind.skPrimaryExchangeMailbox)

{

this.exchPrimaryMailStore =

(Redemption.RDOExchangeMailboxStore)store;

exchPrimaryStoreID = store.EntryID;

//break;

}

else if (store.StoreKind ==

TxStoreKind.skDelegateExchangeMailbox)

{

this.exchDelegateMailStore =

(Redemption.RDOExchangeMailboxStore)store;

exchDelegateStoreID = store.EntryID;

//break;

}

}

if (this.exchPrimaryMailStore != null)

{

this.exchPrimaryMailStore.OnFolderCreated += new

IRDOStoreEvents_OnFolderCreatedEventHandler(exchPrimaryMailStore_OnFolderCreated);

}

if (this.exchDelegateMailStore != null)

{

this.exchDelegateMailStore.OnFolderCreated += new

IRDOStoreEvents_OnFolderCreatedEventHandler(exchDelegateMailStore_OnFolderCreated);

}
wrote:


> Please show the code you're using to establish that event handler, maybe it
> will provide some clues.

> >

>

> "wlan" <wlan> wrote in message
> news:9DCA1EA1-E904-498F-88A9-812164041A03@microsoft.com...
> > Hi ken,
> > My profile is configured with both testusera & testuserB mailbox. I have
> > subscribed folder create event in OnCOnnection of addin.
> >


>
 
K

Ken Slovak - [MVP - Outlook]

Offhand I'd suggest 2 things.

First, get the actual NameSpace object and use that to provide the

MAPIOBJECT to the RDOSession object instead of using Application.Session.

Second, see if touching the delegate store before adding the event handler

helps. Just get the Inbox and the Items collection of Inbox before adding

the OnFolderCreated() event handler.

"wlan" <wlan> wrote in message

news:21443C66-E4D6-4B4B-B415-DBF32187A414@microsoft.com...
> Hi,

> The following code is used for subscribing events of normal and delegate
> user.

> Redemption.RDOSession rdoSession = new RDOSession();
> if (rdoSession != null)
> {
> rdoSession.MAPIOBJECT =
> this.applicationObject.Session.MAPIOBJECT;

> //get stores
> Redemption.RDOStores oRDOStores = rdoSession.Stores;

> foreach (Redemption.RDOStore store in oRDOStores)
> {
> if (store.StoreKind ==
> TxStoreKind.skPrimaryExchangeMailbox)
> {
> this.exchPrimaryMailStore =
> (Redemption.RDOExchangeMailboxStore)store;
> exchPrimaryStoreID = store.EntryID;
> //break;
> }
> else if (store.StoreKind ==
> TxStoreKind.skDelegateExchangeMailbox)
> {
> this.exchDelegateMailStore =
> (Redemption.RDOExchangeMailboxStore)store;
> exchDelegateStoreID = store.EntryID;
> //break;
> }
> }

> if (this.exchPrimaryMailStore != null)
> {
> this.exchPrimaryMailStore.OnFolderCreated += new
> IRDOStoreEvents_OnFolderCreatedEventHandler(exchPrimaryMailStore_OnFolderCreated);
> }

> if (this.exchDelegateMailStore != null)
> {
> this.exchDelegateMailStore.OnFolderCreated += new
> IRDOStoreEvents_OnFolderCreatedEventHandler(exchDelegateMailStore_OnFolderCreated);

> }
>
 
D

d2xhbg

Hi Ken,

I have tried both and its not firing this event for delegate user mailbox.

Current user has EDITOR permission in delegate user inbox. But still it's not

firing.

I can enumerate and see inbox folder items of delegate user mailbox. Also

I'm passing NAMESPACE.MAPIOBJECT now.

Do I need to set any other settings in exchange environment?

Or

Is there anything wrong in the code?
wrote:


> Offhand I'd suggest 2 things.

> First, get the actual NameSpace object and use that to provide the
> MAPIOBJECT to the RDOSession object instead of using Application.Session.

> Second, see if touching the delegate store before adding the event handler
> helps. Just get the Inbox and the Items collection of Inbox before adding
> the OnFolderCreated() event handler.

> >

>

> "wlan" <wlan> wrote in message
> news:21443C66-E4D6-4B4B-B415-DBF32187A414@microsoft.com...
> > Hi,
> > The following code is used for subscribing events of normal and delegate
> > user.
> > Redemption.RDOSession rdoSession = new RDOSession();
> > if (rdoSession != null)
> > {
> > rdoSession.MAPIOBJECT =
> > this.applicationObject.Session.MAPIOBJECT;
> > //get stores
> > Redemption.RDOStores oRDOStores = rdoSession.Stores;
> > foreach (Redemption.RDOStore store in oRDOStores)
> > {
> > if (store.StoreKind ==
> > TxStoreKind.skPrimaryExchangeMailbox)
> > {
> > this.exchPrimaryMailStore =
> > (Redemption.RDOExchangeMailboxStore)store;
> > exchPrimaryStoreID = store.EntryID;
> > //break;
> > }
> > else if (store.StoreKind ==
> > TxStoreKind.skDelegateExchangeMailbox)
> > {
> > this.exchDelegateMailStore =
> > (Redemption.RDOExchangeMailboxStore)store;
> > exchDelegateStoreID = store.EntryID;
> > //break;
> > }
> > }
> > if (this.exchPrimaryMailStore != null)
> > {
> > this.exchPrimaryMailStore.OnFolderCreated += new
> > IRDOStoreEvents_OnFolderCreatedEventHandler(exchPrimaryMailStore_OnFolderCreated);
> > }
> > if (this.exchDelegateMailStore != null)
> > {
> > this.exchDelegateMailStore.OnFolderCreated += new
> > IRDOStoreEvents_OnFolderCreatedEventHandler(exchDelegateMailStore_OnFolderCreated);
> > }
> >


>
 
K

Ken Slovak - [MVP - Outlook]

Looks like you're using cached mode?

In testing here I found the OnFolderCreated() handler working for the

primary mailbox but not for delegate mailboxes when in cached mode. In

online to Exchange mode I did get the OnFolderCreated() handlers firing for

both primary and delegate mailboxes.

I assigned owner rights to the delegate mailbox, so permissions weren't an

issue.

I pinged Dmitry to see if this is unexpected or expected behavior.

"wlan" <wlan> wrote in message

news:8387CDF0-8ED7-499E-9E8D-0A2E8AB0F5F9@microsoft.com...
> Hi Ken,

> I have tried both and its not firing this event for delegate user mailbox.
> Current user has EDITOR permission in delegate user inbox. But still it's
> not
> firing.

> I can enumerate and see inbox folder items of delegate user mailbox. Also
> I'm passing NAMESPACE.MAPIOBJECT now.

> Do I need to set any other settings in exchange environment?

> Or

> Is there anything wrong in the code?
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
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
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
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
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
D exchange mailstore - FolderCreate event Outlook VBA and Custom Forms 1
P Calendar Day View only shows 1 all day event Using Outlook 0
G Event when creating task from mailitem Outlook VBA and Custom Forms 2
diver864 vba for a rule to automatically accept meeting requests with 'vacation' in subject, change to all-day event, change to free, don't send reply Outlook VBA and Custom Forms 1
J Outlook 2010 Outlook/Win7 Client logging Event ID 36887 Using Outlook 0
K Recurring all day annual event Using Outlook 3
P Restore an individual all-day recurring event Using Outlook 2
K VBA BeforeItemMove event create rule to always move to its folder. Outlook VBA and Custom Forms 4
K Working with Explorer.Close event Outlook VBA and Custom Forms 3
F Outlook 2016 call to Stop Timer Event Outlook VBA and Custom Forms 4
D Event ID issues Exchange Server Administration 2
J ItemChange event Outlook VBA and Custom Forms 11
T Outlook 2016 Calendar multiday event display Using Outlook 4
oliv- Treat once an email with the ItemAdd event in a shared mailbox Outlook VBA and Custom Forms 2
M Automatically create event in calendar when task is created Outlook VBA and Custom Forms 1
A UID field in iCal files - unique per-event or per-user or both? Using Outlook 2
D help with Item/Inspector close event Outlook VBA and Custom Forms 1
B on flag message event - create task Outlook VBA and Custom Forms 22

Similar threads

Top