This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I add custom events to the M-Files event log?

I'm assuming we use VaultEventLogOperations.AddCustomEventEntry but there's no documentation or examples of how to use this?

  1. Can EvenType be any string?
  2. What's the schema for XmlData? Is it the one in C:\Program Files\M-Files\23.10.13060.5\Common\events.xsd ?
Parents
  • EventType can be any string, and the XmlData can be any format (there's no schema).  In fact, it can be a simple string as well if you want.

    This code:

    job.Vault.EventLogOperations.AddCustomEventEntry("test", "<hello></hello>");

    Produces this:

Reply
  • EventType can be any string, and the XmlData can be any format (there's no schema).  In fact, it can be a simple string as well if you want.

    This code:

    job.Vault.EventLogOperations.AddCustomEventEntry("test", "<hello></hello>");

    Produces this:

Children