Scripts for custom notifications?

  • 27 November 2008
  • 5 replies
  • 1 view

Badge +4

I need to write several custom notifications as part of my project requirement.


I want to execute a script instead of creating a new event for each custom notification.


Kindly let me know if this is possible? 


Awaiting your early reply.


Thanks in advance. 


 


 


5 replies

Badge +9
Hmm wouldn't it be similar to executing a cscript command from a command shell process in code?  I would think it would be possible as long as the service account had sufficient permissions.
Badge +4

Hi,


Can any one tell me how to write scripts for creating custom notification events in k2 blackpearl?


Regards,


Nithya

Badge +9

I have not tried the specific scenario of executing scripts from within custom notifications, but I think you can probably do the following:


1. Write a custom notification as described here (http://k2underground.com/blogs/fromthebench/archive/2008/02/13/custom-notifications.aspx).


2. Implement the cscript functinoality within the DLL you created (step 1).  This url appears to have some decent info on interact with cscripts from C# code (http://www.vsj.co.uk/dotnet/display.asp?id=417)

Badge +4

Hi,


Can you give me some more explanation, if possible with a very small example.


Thanks in advance.


 

Badge +9

Have you looked at the document attached to the post http://k2underground.com/blogs/fromthebench/archive/2008/02/13/custom-notifications.aspx

This has a step-by-step on how to create a custom notifications.  You could leverage this and just swap the code in the public static method within the DLL to do something you need.

Reply