SPFx - How to start workflow on list?
-
28-12-2020 - |
Question
Do I want to start workflow where send an email with a new framework of SharePoint? Is it true that I can not start a workflow?
What should I use?
- SPServices library
- JSOM
- PnP?
Thank you previously!
Solution
You can create a custom button to start a workflow on a List item. Here I have used SP services to achieve this. The whole logic lies in - how create a Url that redirects to Workflow initiation page? This url looks like this;
../sites/your_sitename/layouts/15/IniWrkflIP.aspx?List="+your_List_guid+"&ID="+<your_ItemID>+"&TemplateID={"+WFguid+"}
Please refer to my Complete Answer
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange