Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Starting a Workflow using Powershell
WhatsApp
Lakshmanan Sethu Sankaranarayan
10y
2.6
k
0
0
25
Blog
To start a workflow on a single list item , we can use the following PowerShell commands.
$web = Get-SPWeb -Identity
https://mysite
/workflow
$manager = $web.Site.WorkFlowManager
$mylist = $web.Lists["Shared Documents"]
$association = $mylist .WorkflowAssociations.GetAssociationByName("On Item Created","en-US")
$data = $association .AssociationData
$items = $mylist .Items foreach($item in $items)
{ $wf = $manager.StartWorkFlow($item,$association ,$data,$true)
}
$manager.Dispose()
$web.Dispose()
Starting a Workflow using Powershell
Up Next
How to Start Workflow in SharePoint 2013 Using PowerShell
Ebook Download
View all
Configure MinRole Search and Cloud Hybrid Features in SharePoint Server 2016 and Office 365
Read by 1.6k people
Download Now!
Learn
View all
Membership not found