Welcome to Outlook2CRM Sign in | How to Register?
  The Official Outlook2CRM Development blog. Hosted by Ryan Farley, Director of Development for Customer FX Corporation and developer of Outlook2CRM.

 Marking E-mail as Complete from Outlook2CRM


OK. This just keeps getting better. A while back, I posted some code to set the e-mail category from Outlook2CRM actions so you could visually see in Outlook what actions you've taken with an e-mail in SalesLogix. On that post, Martin Vierling posted a comment asking about doing the same with the "Complete" flag for e-mails when you use an Outlook2CRM action on them so the user can see which e-mails have been "completed" in SalesLogix.

This is a great example of how flexible and easy to work with Outlook2CRM really is. With just a couple of lines of code I'll add this to any Outlook2CRM action script.

' Set Complete flag
With Addin_NativeMailItem
    .FlagStatus = 1 'olFlagComplete
    .Save
End With

The result is pretty cool:

Anything accessible in the Outlook object model is available via the Addin_NativeMailItem object in the Outlook2CRM API. One thing to remember, Outlook2CRM is compatible with Outlook v2000 and higher. So the MailItem exposed here is an Outlook 9.0.0.0 object so only those items exposed in Outlook9 are available.

I'll be adding this to the list to include built in, and optional, support for this in the next version.


Published Monday, April 14, 2008 3:03 PM by Ryan Farley

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Submit