none
Additional informations from ObjectSync RRS feed

  • Question

  • Hi, I'd like to know whether is it possible to retrieve additional informations from ObjectSyncEvents. I'm capturing synchronization events and want to extract more informations then just start and finish time (number of downloaded emails...). Is there a way to find such informations? Thans in advance
    Tuesday, October 29, 2013 1:43 PM

Answers

  • It refers to the progress max value. Below is a sample of events fired when sync runs.

    You can see it in OutlookSpy - click Namespace button, double click in the SyncObjects property, go to the EnumVariant tab, double click on the "All Accounts" entry, go to the Events tab.

    SyncStart ()
    Progress (1, , 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending and Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, , 0, 1000)
    Progress (1, , 71, 1000)
    Progress (1, Checking for new mail in subscribed folders on xxx@yyy.com (1)., 71, 1000)
    Progress (1, , 71, 1000)
    Progress (1, , 0, 1000)
    Progress (1, , 0, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 80, 1000)
    Progress (1, , 80, 1000)
    Progress (1, , 121, 1000)
    Progress (1, , 284, 1000)
    Progress (1, , 326, 1000)
    Progress (1, , 368, 1000)
    Progress (1, , 410, 1000)
    Progress (1, , 452, 1000)
    Progress (1, , 494, 1000)
    Progress (1, , 536, 1000)
    Progress (1, , 578, 1000)
    Progress (1, , 621, 1000)
    Progress (1, , 663, 1000)
    Progress (1, , 705, 1000)
    Progress (1, , 747, 1000)
    Progress (1, , 789, 1000)
    Progress (1, , 831, 1000)
    Progress (1, , 873, 1000)
    Progress (1, , 915, 1000)
    Progress (1, , 957, 1000)
    Progress (1, , 1000, 1000)
    Progress (1, , 1000, 1000)
    SyncEnd ()


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by Hedi Naili Tuesday, October 29, 2013 3:35 PM
    Tuesday, October 29, 2013 2:03 PM

All replies

  • The only additional information you can get is from the SyncObject events:

    OnError(Code, Description)

    Progress(State, Description, Value, Max)


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, October 29, 2013 1:48 PM
  • Ok, and what do the Max parameter refer to? what are the disp id numbers of those functions?
    Tuesday, October 29, 2013 1:55 PM
  • It refers to the progress max value. Below is a sample of events fired when sync runs.

    You can see it in OutlookSpy - click Namespace button, double click in the SyncObjects property, go to the EnumVariant tab, double click on the "All Accounts" entry, go to the Events tab.

    SyncStart ()
    Progress (1, , 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, Downloading Messages, 0, 1000)
    Progress (1, Sending and Downloading Messages, 0, 1000)
    Progress (1, Sending Messages, 0, 1000)
    Progress (1, , 0, 1000)
    Progress (1, , 71, 1000)
    Progress (1, Checking for new mail in subscribed folders on xxx@yyy.com (1)., 71, 1000)
    Progress (1, , 71, 1000)
    Progress (1, , 0, 1000)
    Progress (1, , 0, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 50, 1000)
    Progress (1, , 80, 1000)
    Progress (1, , 80, 1000)
    Progress (1, , 121, 1000)
    Progress (1, , 284, 1000)
    Progress (1, , 326, 1000)
    Progress (1, , 368, 1000)
    Progress (1, , 410, 1000)
    Progress (1, , 452, 1000)
    Progress (1, , 494, 1000)
    Progress (1, , 536, 1000)
    Progress (1, , 578, 1000)
    Progress (1, , 621, 1000)
    Progress (1, , 663, 1000)
    Progress (1, , 705, 1000)
    Progress (1, , 747, 1000)
    Progress (1, , 789, 1000)
    Progress (1, , 831, 1000)
    Progress (1, , 873, 1000)
    Progress (1, , 915, 1000)
    Progress (1, , 957, 1000)
    Progress (1, , 1000, 1000)
    Progress (1, , 1000, 1000)
    SyncEnd ()


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by Hedi Naili Tuesday, October 29, 2013 3:35 PM
    Tuesday, October 29, 2013 2:03 PM
  • re: 
    Hi Dmitry, what does the AutoDiscoverComplete event mean?

    Thanks.

    Monday, November 4, 2013 8:27 AM
  • It is fired when Outlook finished retrieving auto discover XML used to configure Exchange accounts.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, November 4, 2013 1:26 PM
  • Thanks, and when exactly does outlook begins to retrieve it? Is it when it starts up?
    Monday, November 4, 2013 2:36 PM
  • What are you using that event for?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, November 4, 2013 2:47 PM
  • I just wanted to know whether it is possible to determine the duration of auto discover.
    Monday, November 4, 2013 3:20 PM
  • I never worked with that event, but it is my understanding that Outlook retrieves the autodiscover XML only once and uses the cached version afterwards.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, November 4, 2013 7:24 PM
  • You mean once for each execution of Outlook, I mean does it accur everytime Outlook starts up?
    • Edited by Hedi Naili Wednesday, November 6, 2013 9:10 AM
    Wednesday, November 6, 2013 8:26 AM
  • I don't think autodiscover is retrieved every time Outlook starts up.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, November 6, 2013 2:24 PM