Is it possible to open a Webpage or use a function to get the content of it within plug-in integration?

I want to trigger the plug-in to open a webpage whenever specific event happens in Milestone. The webpage opens outside MIP library but once I use the same method inside plug-in source code nothing happens.

I use try and catch but no error occurs specially after changing the service account to administrator account.

You can use the method ViewAndLayoutItem.InsertBuiltinViewItem(int index, Guid builtinId, Dictionary< String, String > properties) where second parameter = ViewAndLayoutItem.HTMLBuiltinId and properties = WEB Page parameters.

You can also use a Floating Windows as container.

Freddy

Thanks Freddy.

I don’t want to add view in smart client and I want this process to run in the background. XProtect Smart Client is closed most of the time and that’s why I need to find a way to call url to trigger an action in a different system when a specific alarm is received from milestone.

What I am trying to do is very simple and can be done outside milestone MIPS.

What you want should be doable, and I cannot guess why it doesn’t work because I would expect it to work from your description.

Have you tried to single-step debug or similar?

If you haven’t used this yet I would very much recommend:

https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins

https://developer.milestonesys.com/s/article/debugging-techniques-for-Event-Server-plugins

https://developer.milestonesys.com/s/article/debugging-techniques-for-Management-Client-plugins

If it does not lead you to a solution, please add information on which class in which environment you are using, and what you observe while debugging.

If SC is closed of course you can’t add a view :).

Maybe this means you are running Background Plugin in ES environment, in such case you cannot open a WEB page, if you try you will receive access denied exception; you can do that only if you are a User (with login).

I had same problem with icon map context menù to open google map position because context menù act as a trigger for ES, but my client is opened (to ask for position), so:

SC → trigger (ES) → message to SC → open web page

Freddy