Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Created February 28, 2022 20:04
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 BrianMRO/52fda480881d59351809d6b633c41679 to your computer and use it in GitHub Desktop.
Save BrianMRO/52fda480881d59351809d6b633c41679 to your computer and use it in GitHub Desktop.
Workflow - Define Actions
// Define Constants
private const string
_actionRemoveHold = "Remove Hold",
_actionPutOnHold = "Hold";
#region Actions
var removeHold = context.ActionDefinitions
.CreateNew(_actionRemoveHold, a => a
.InFolder(FolderType.ActionsFolder)
.PlaceAfter(g => g.Last)
);
var putOnHold = context.ActionDefinitions
.CreateNew(_actionPutOnHold, a => a
.InFolder(FolderType.ActionsFolder)
.PlaceAfter(removeHold)
);
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment