How to access message center using Tom .NET

Go To


I am using event handler to automate page creation.I want to give feedback to the user using message center.Example code to access message center will be helpful.

2012-04-04 04:33
by imAdi


Message Center is not a part of TOM.NET API. Its a part of Content Manager Explorer.

U can check this site:

Might be helpful how to access message center.

2012-04-17 09:02
by Bappi


I don't think it's possible to access the Message Center via TOM.NET. One way would be to throw an exception in your event system and that will show in the Message Center, but I don't think you want that. The message will contain the exception and it will be labeled as error.

So, alternatively, I would implement a polling mechanism that executes on the CME as some Javascript code. This would poll and consume a service that provides the messages you want to show in the Message Center. Your event system code will write the messages to this service.

The Javascript code can be a GUI extension running some AJAX poller (as a Javascript timeout or interval) connecting the service and consuming its messages.

The service can be as simple as an aspx page, but you can also create some fancier approach e.g. a web service with web methods.

2012-04-04 04:50
by Mihai Cădariu
Indeed you cannot access the Message Center from using TOM.NET, as they are two completely different things running in different processes even. What Mihai suggested is the only way I can think of - Peter Kjaer 2012-04-04 07:17
When handling a PublishEvent, it is possible to throw exceptions and they become visible in the message center. Unfortunately it seems to only work while publishing. This does not work for a custom resolver - MrSnowflake 2012-07-16 06:48