we are having a requirement,when we click on a button in SharePoint page,we need to trigger workflow...
Can any one help on this how we can achieve this functionality
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
What does the PowerShell script do? This seems like a very convulted way of approaching the problem; anything you can do in PowerShell you can do in a C# assembly called from the custom page.
Why don't you take a look at this tutorial? https://msdn.microsoft.com/en-us/library/ee231557.aspx
Then you can convert your powershell code to C# and execute it from an ASP button click.