Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created October 15, 2021 12:53
Embed
What would you like to do?
[Serializable]
public class SyncItemPostAction : Command
{
public override void Execute(CommandContext context)
{
var contextItem = context.Items[0];
if (contextItem == null || contextItem.TemplateID != CommonConst.TemplateIdToCheck)
{
return;
}
var newFieldValue = contextItem["Custom Field"];
// custom code to use the new field values
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment