In this article we will cover how to edit the existing task to send Event Details and in particular Event Data in the body of an e-mail.
Create a Job which will trigger on an Event during specific condition:
Right-Click on the selected Job that contains the Event-based trigger and Export it, save it as test.xml:
Open the test.xml file in Notepad to Edit, and search and find Event Trigger:
Include ValueQueries as shown below and save the file. In below example, we have added (Event/EventData/Data) as (EventData) which will be used as $EventData while sending an e-mail.
NOTE: you can include any values in the event (for example: Event/System/Computer will include your Server Name). You can open the Event -> Go to Details tab -> Select XML view to see more details:
Delete the existing task and import the new task using modified XML file:
Edit Actions -> Send an e-mail option, include $(EventData) as appropriate: