68523

Intercepting Outlook category assignment events?

Note this is not a duplicate of this similar but different question!

My question is not how to intercept Category create / rename / delete events, but how to intercept when a user <strong>assigns a category to an item</strong> (contact, meeting etc). I am just starting to explore the Outlook object model, and I'm struggling to 'get' how it works. Any assistance in the right direction would be fantastic!

I realise I'm not providing much detail and this seems like a 'please do it for me' type question, but I really only need a brief idea of if this is possible, unfortunatley I don't have much time to research. Thanks!

Answer1:

I think you will need and Inspector wrapper and and Explorer wrapper to get all the places that you can change the category (as you can right click in the explorer view).

But they catagory assignment should fire the Item PropertyChange event. In the explorer you will have to track the selected items and wire up the PropertyChange event for each item in the selection.

Marcus

Answer2:

A possible solution. Not anything I have actually tried, yet.

    <li>OlkCategoryEvents_Event.Change Event - Microsoft.Office.Interop.Outlook - Occurs when a category selection has changed. Namespace: Microsoft.Office.Interop.Outlook</li> <li>Assembly: Microsoft.Office.Interop.Outlook (in microsoft.office.interop.outlook.dll), using event OlkCategoryEvents_ChangeEventHandler Change</li> </ul>

Recommend

  • Safely storing credentials when I need to retrieve the password for use
  • How to decrease the line spacing in LineSeparator itext
  • How to run Background Tasks in ASP.NET [closed]
  • Can you define a custom collation using a function in XSLT?
  • Can I deploy Python .pyc files only to Google App Engine?
  • Core Data vs SQLite [closed]
  • Python: Cross-platform solution to detect physical non-HT CPUs?
  • How can I handle ArrowKeys and < (Greater Than) in a Javascript function? Which event and which c
  • Exporting data from Excel to Outlook
  • Set Outlook's 'show this address list first' option
  • Extending the User Interface in Outlook 2010 to add to the Right Click menu
  • Android - FM/Radio Transmitting
  • view SQLite Databases in android listview?
  • Insert list of lists into single column of pandas df
  • Relationship between LR(0), LL(0), LALR(1), etc?
  • ruby - lazily iterate through an array
  • Transforming multiindex to row-wise multi-dimensional NumPy array.
  • EnumerateFiles() equivalent in .NET 3.5
  • Finding an index in range of values between 0-100 in Python
  • Obtain access token for both Microsoft Graph and individual service API endpoints (Outlook REST APIs
  • Querying multiple tables
  • Rotated Text in Circular Region
  • how to calculate distance between two points in google maps?
  • Put percent labels next to legend instead of in the slice
  • Storing a copy of a document embedded in another document in MongoDB via Mongoose
  • HABTM associations in Rails : collecting and counting the categories of a model's children
  • Access the state of control in Winforms from another application
  • Guava how to copy all files from one directory to another
  • How to recover from a Spring Social ExpiredAuthorizationException
  • ILMerge & Keep Assembly Name
  • Large data - storage and query
  • WOWZA + RTMP + HTML5 Playback?
  • AT Commands to Send SMS not working in Windows 8.1
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How do I configure my settings file to work with unit tests?
  • Is it possible to post an object from jquery to bottle.py?
  • MATLAB: Piecewise function in curve fitting toolbox using fittype
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • Binding checkboxes to object values in AngularJs
  • How can I use `wmic` in a Windows PE script?