Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created October 15, 2021 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trnktms/acb99ef4feceba1c9038dd57dae4dfb7 to your computer and use it in GitHub Desktop.
Save trnktms/acb99ef4feceba1c9038dd57dae4dfb7 to your computer and use it in GitHub Desktop.
[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