I have an requirement where i am calling the same server method on Server Events On After Update, On After Add and On After Delete. Is there a way i can check from which event the method is called.
Hummm, I don't think you can easily do that. But, you could create a different method for each trigger which calls most of your common code in a generic method. Would that solve the problem?
Hi yoann,
Actually I didn't wanna create separate method for each event that's my main requirement. I could able to solve this eventdata. GetType(). Name gives me the name of the trigger which calls the method so from there I could able get the required information. Thanks for the reply.
I need the name of the event from which the method is getting triggered, This existing functionality evendata.GetType().Name gives me the name of the event which solved my problem.