Created
June 11, 2017 21:50
-
-
Save hishaamn/96a7a94b3be043262c4c22ab3d0f78ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void GetEventDefinition(Item item) | |
{ | |
Assert.ArgumentNotNull(item, "item"); | |
var field = item.Fields["__Tracking"]; | |
if (field != null) | |
{ | |
var trackingField = new TrackingField(field); | |
foreach (var events in trackingField.Events) | |
{ | |
var definitionId = events.DefinitionItem.ID; | |
// Perform any logic here | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment