Answered by:
what is the suitable Server Event Handler to read custom project fields ??

Question
-
Hi All,
I added a new event handler to the project on publishing event to read custom project fields but i recieve a job cancelled on server when i try to publish.
So, my question is: what's the suitable Server Side Event Handler to read custom project fields and access project site lists as well ?Any ideas ...
Thanks
Regards, Mohamed Abdel Ghaffar | http://sharepointfoundation2010.blogspot.comWednesday, March 2, 2011 1:32 PM
Answers
-
Hi Mohamed, it sounds like the error in you event handler is causing the cancellation so debugging that should be your first job. As to the question of which event handler is right - it depends what you end goal is. Also you may not have access to all the items you need within the event - but you can make extra PSI calls to get what you need.
Best regards,
Brian.
Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page- Marked as answer by Christophe FiessingerMicrosoft employee Tuesday, March 8, 2011 3:01 AM
Friday, March 4, 2011 5:15 PM
All replies
-
Hi Mohamed, it sounds like the error in you event handler is causing the cancellation so debugging that should be your first job. As to the question of which event handler is right - it depends what you end goal is. Also you may not have access to all the items you need within the event - but you can make extra PSI calls to get what you need.
Best regards,
Brian.
Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page- Marked as answer by Christophe FiessingerMicrosoft employee Tuesday, March 8, 2011 3:01 AM
Friday, March 4, 2011 5:15 PM -
Hi Brian,
Thanks for your help. I debugged the event handler and solved the issue. regarding the right event handler, I still use OnPublishing with handling all exceptions
Best Regards,
Regards, Mohamed Abdel Ghaffar | http://sharepointfoundation2010.blogspot.comSunday, March 6, 2011 9:36 AM -
I have requirement where I need to perfrom few checks when a task is added/deleted/updated in MPP or PWA. But none of the events (OnUpdating,OnActivityupgrading,OnUpdatingScheduledProject,
OnEntitiesDeleting) are fired in my code.
Any idea what the problem could be?
FYI, I am using Project Server 2016.
Regards
Agasthya
agasthya
Wednesday, May 9, 2018 5:46 AM