Command
Get-Workflow
Description
The command to get workflows from a SharePoint site.
Index
Examples
Get All Workflows
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-Workflow -Site $site
Get Workflows Matching Name
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-Workflow -Site $site -Name MyName*,MySpecificName
Note: The * symbol is used to call multiple objects with a similar name.
Get Workflows Matching Id
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-Workflow -Site $site -Id 45b052f9-d13c-4fab-a869-55d7ff147f7d
Syntax
Get-Workflow -Site <Site>
[-Name <String[]>]
[-Id <String[]>]
Parameters
-Id <String[]>
Specifies the id (Wildcards supported).
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | True |
Parameter set name | (All) |
Aliases | None |
-Name <String[]>
Specifies the name (Wildcards supported).
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | True |
Parameter set name | (All) |
Aliases | None |
-Site <Site>
Specifies the SharePoint site.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |