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

ryotyankou

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.
Thread starter Similar threads 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
K You can't specify the recipient container because legacy servers are detected Exchange Server Administration 4
Y Add servers to DAG error 'is not an acceptable witness server name. You must specify a host name or fully-qualifed domain name for the witness se Exchange Server Administration 14
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
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 Calendar Printing Assistant 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
M Rules applied that aren't current Rules Using Outlook 2
D In Outlook 2007 on Windows 7 64 bit Customize Current View 'Other Settings' Fonts changes do not hold Using Outlook 2
M eseutil Operation terminated with error -528 (JET_errMissingLogFile, Current log file missing) Exchange Server Administration 1
M Customize Current View of PST Files Using Outlook 2
S 2010 Calendar How to change the Current month and next month in header bar Using Outlook 1
M cannot connect with more then 5 current users to outlook anywhere exchange 2007 Using Outlook 3
C ICal.ics files creating new calendar instead of opening into current calendar. Using Outlook 3
O Reinstate a File As column on a current view display in outlook Using Outlook 1
B Outlook, mail, view, lost current weeks memos Using Outlook 1
T Active Directory domain 'FECR' has an unrecognized Exchange signature. Current DomainPrep version: 1 Exchange Server Administration 2
K It won't let me change default data files, and it won't let me remove the current default data file Using Outlook 2
K Outlook- Allow access to former employee's PST file by current employee? Using Outlook 1
Z BCDM 2007 error "current user does not have permission to grant other users permission to connect... Using Outlook 2
J The filter Button is dimmed in the View - Customize Current View dialog. Using Outlook 2007 on Exchange. Using Outlook 3
S Outlook Printing - How to Just Print Current or Selected Page Using Outlook 1
A current year email not available in search Using Outlook 1
M The current Automatic Replies (OOF) state doesn't match the OOF state that was previously set Exchange Server Administration 1
Similar threads


















































Top