如何在SharePoint Online中获取现有工作流的subscriptionId [英] How to get the subscriptionId of an existing workflow in SharePoint Online

查看:112
本文介绍了如何在SharePoint Online中获取现有工作流的subscriptionId的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想使用rest api从列表中触发我的手动工作流程。希望用户选择一些不同的项目并单击按钮然后触发每个项目的工作流程

I would like to use rest api to trigger my manual workflows from a list. Would like users to select some various items and click a button and then trigger the workflow on each items


我有这个url

I have this url below

/_layouts/15/IniWrkflIP.aspx?List={08012d13-3b9f-446b-87a6-a616a4906cc0}&ID=1&ItemGuid={7C2E6668-E4AC-4A54-89DA-5D0DE9907CAE}&TemplateID={44caed28-e898-4472-82ce-8e9fac8bfabf}



但我没有看到subscriptionId参数。它与TemplateID相同吗?

But I don't get to see the subscriptionId parameter. Is it the same as the TemplateID?


我使用的REST api如下:

The REST api I am using is as follows:

/_api/SP.WorkflowServices.WorkflowInstanceService.Current/StartWorkflowOnListItemBySubscriptionId(subscriptionId='44caed28-e898-4472-82ce-8e9fac8bfabf',itemId=2)



先谢谢

Thanks in Advance

推荐答案

您好

您使用SharePoint 2013工作流程还是SharePoint 2010工作流程?

Do you use SharePoint 2013 workflow or SharePoint 2010 workflow?

不确定但可能只有SharePoint 2013工作流程具有订阅机制。

Not sure but may be only SharePoint 2013 workflow has subscription mechanism.


这篇关于如何在SharePoint Online中获取现有工作流的subscriptionId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆