Re: How to specify the "current entry id" to GetItemFromID?

  • Thread starter Dmitry Streblechenko
  • Start date
Status
Not open for further replies.
D

Dmitry Streblechenko

The whole point of retrieving the value of the Class property is to make

sure trhat you really have a MailItem object.

Try the following script in OutlookSpy: click Application button on the

OutlookSpy toolbar, go to the Script tab, paste teh script below. Now

whenever a new message arrives, OutlookSpy will open a new IDispatch browser

where you shoudl be able to see all the object properties.

sub Application_NewMailEx(EntryIDCollection)

set Msg = Application.Session.GetItemfromID(EntryIDCollection)

BrowseObject(Msg)

end sub

Dmitry Streblechenko (MVP)
 
Thank you for your help so far, i change my way to process the incoming e-
mail, use IMessage interface instead of MailItem. These are the steps:

1.Use OpenEntry open the item to get IMessage interface.

2.Use IMessage interface query IMAPIProp interface, then make operation on
the item.

It works fine, Thank you again in advance, you are great people. ^_^
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
David in Mississippi New (Feb 2020) install of Outlook 365 - Cannot specify PST for different accounts Using Outlook 0
H How can I specify which calendar to display Using Outlook 1
R specify from account in mail merge Using Outlook 3
J Specify Font Name or Face using VBA Macro in Word Outlook VBA and Custom Forms 2
T Specify formatting of HTMLBody in and outlook message Outlook VBA and Custom Forms 5
G Get current open draft message body from VBA Outlook VBA and Custom Forms 1
S Macro to extract email addresses of recipients in current drafted email and put into clipboard Outlook VBA and Custom Forms 2
N Having Shared Calendar shift to Current day Using Outlook 0
E Conditional formatting - when current account <> received account ? Using Outlook 3
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
P Auto Insert Current Date or Time into Email Subject Outlook VBA and Custom Forms 2
R VBA for copying sent email to current folder under a shared mailbox Outlook VBA and Custom Forms 17
H Select Specific Account When Sending Email, Based on Current Folder Outlook VBA and Custom Forms 1
W Save Outlook attachment in network folder and rename to current date and time Outlook VBA and Custom Forms 18
F "This action is not available in the current mode" Using Outlook 0
J Old unread emails on current date (MDaemon Server) Using Outlook 1
P Current View Pane for Contacts missing from Outlook 2016 Using Outlook 3
T Attach Current File to a new Email Using Outlook 0
K Daily task list > show tasks on the exact due date and not on the "current date" Using Outlook 1
C Outlook VBA to set current account Outlook VBA and Custom Forms 1
J Outlook 2013 Want to file a note after filtering with search current mailbox Using Outlook 3
R Inbox search, current folder, it's in there-but not found. Using Outlook 2
C Copy Cell value from Excel and paste into current email Outlook VBA and Custom Forms 10
S Auto Create new Task upon Current Task completion Outlook VBA and Custom Forms 28
B Outlook 2007 Save Current View,Font,Toolbar Settings Using Outlook 6
M Change default Current View on People Using Outlook 1
R how to get Outlook VBA code to work on the current folder Using Outlook 3
B Outlook 2010 won't save 'current view' with reading pane at 'bottom' Using Outlook 4
C Either there is no default mail client or the current mail client cannot ... Using Outlook 1
E "Current View" settings across multiple users on same Exchange 2007 account. Using Outlook 1
E Calendar Thumbnail current day background color Using Outlook 3
G How can I identify in VBA if the current window is an item or a folder? Using Outlook 3
C Hover display of DL shows original owner, not current Using Outlook 2
B right click outlook objects in OL2010 acts on current inbox mailitem Using Outlook 6
T Outlook makes every appointment recurring and set to the current date/time Using Outlook 2
D Save Current email in Directory. Outlook VBA and Custom Forms 1
L create new mail item from current item Outlook VBA and Custom Forms 4
K insert text into current position of pointer in mailcompose Outlook VBA and Custom Forms 1
S Count of Contacts In Current View BCM (Business Contact Manager) 1
S VBA access current contact? BCM (Business Contact Manager) 1
S get current position in message body of mailitem Outlook VBA and Custom Forms 8
J Toolbar button to process current mailitem Outlook VBA and Custom Forms 1
X Re: how to access current text selection Outlook VBA and Custom Forms 1
T date/time field, current year Outlook VBA and Custom Forms 2
N Customize current view (in Account List) Business Contact Manager BCM (Business Contact Manager) 1
Q Remove filter from current view - outlook 2003 Outlook VBA and Custom Forms 4
T current cursor position in the reply event Outlook VBA and Custom Forms 1
T Re: mailItem.HTMLBody should retrieve only current text Outlook VBA and Custom Forms 1
K Add an entry to a specific calendar Using Outlook 1
O Unable to make changes to an existing Calendar entry Using Outlook 11

Similar threads

Back
Top