Created
February 28, 2022 20:04
-
-
Save BrianMRO/52fda480881d59351809d6b633c41679 to your computer and use it in GitHub Desktop.
Workflow - Define Actions
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
// 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