Created
October 15, 2021 12:53
-
-
Save trnktms/acb99ef4feceba1c9038dd57dae4dfb7 to your computer and use it in GitHub Desktop.
This file contains 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
[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