redemption - foldercreate event + delegate user

  • Thread starter Thread starter d2xhbg
  • Start date Start date
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
 
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
 
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
 
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


>
 
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.
>
 
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.
> >


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

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


>
 
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
D Auto Remove [EXTERNAL] from Subject + ConversationTopic (WITHOUT Redemption plug-in) Outlook VBA and Custom Forms 5
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
J Calendar events created on iPhone automatically changing default alert from 'None' to 'Time of Event' Using Outlook.com accounts in Outlook 0
T How to get an EVENT COLOR option in Outlook 2021 ? Using Outlook 0
J Cannot edit a calendar event received as an invitation Using Outlook 2
T Event Error on non existent Event. Using Outlook 2
J Event/Meeting in Outlook Does Not Align with SharePoint Calendar Using Outlook 5
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

Similar threads

Back
Top