Create Server Side Event Handlers in Project Server 2013

Create Server Side Event Handlers:-

Server Side Event Handlers in Project Server provides a way to extend Microsoft Project Server 2013 by adding new business logic.In project server event handlers are custom event handlers, occurs when we create, update, delete or Publishing etc integrated Project in Project Server and when we delete and update integrated Resource.When we register custom event handlers with project server’s events,  Project Server raises post-events and pre-events when Project Server Interface (PSI) methods change business objects such as Project, Task, Resource, or Timesheet.

If you don’t know how to add service reference then follow my post. Add PSI Web Reference in Solution file

Below are steps to create Project Server Event Handler

  • Open SharePoint Central Administration, click General Application Setting
    .
  • In PWA Settings section, Click Manage.

GeneralApplicationSetting

  • PWA settings page will be open, You can change PWA path here to click on Project Web App Instance.

Server Side Event Handlers

  • Now Server Side Event Handlers page will be open, click o an event which you want to add.In this post, I am going to add the event on Project Publishing.Now click on New Event Handler 

add Server Side Event Handlers

  • New Event Handler page will be open. Fill all the field
    Name =EventName( Ex: PublishingProjectEvent)
    Description = I didn’t fill Description Field. If You need then can fill.
    Assembly Name = Your Event Dll Name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=66042427c66706df.

Server Side Event Handlers Page

Here is image below to find your DLL Name, Version, and PublicKeyTokan, Go to in GAC                where all the Dell is registered.

Gac Path

Gac Path:C:\Windows\Microsoft.NET\assembly\GAC_MSIL

v4.0_1.0.0.0_66042427c66706df:- V4.0 is .Net Framwork, 1.0.0.0 is version and 66042427c66706df is PublicKeyTokan.

  • Now Next Box is Class Name: – Fill your Class Name with Namespace. In below image, you will see my Namespace is PublishingProjectEvent and Class Name=MyEventHandler. fill Class Name=PublishingProjectEvent.MyEventHandler

Event Handler Namespaces

  • Next Fill Order Field: -Provide the order for the event handler. If there are multiple event handlers associated with this event, the order number will determine the sequence in which the event handlers will be executed.
  • [AdSense-A]
  • Click on save button and wait for few second your server side event handlers will be created and will see in Server Side Event Handlers page

Server Side Event Handlers Center

SVCProject is Project Web Service Reference.

If you don’t know how to add web service reference, follow my post

How to add web service reference in PSI

[AdSense-A]

Programmatically Create Server Side Event Handlers