SharePoint 2013 Designer工作流 - 调用Web服务两次从Sharepoint设计器工作流创建问题 [英] SharePoint 2013 Designer Workflow-Calling web service two times creating issue from Sharepoint designer workflow

查看:101
本文介绍了SharePoint 2013 Designer工作流 - 调用Web服务两次从Sharepoint设计器工作流创建问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


IN设计师工作流程我在下面使用Rest查询

IN Designer workflow I am using below Rest query


Site_Url / _api / SP.UserProfiles.PeopleManager / GetPropertiesFor( accountName = @ v)?@ v =%27doamin\acountname%27

Site_Url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27doamin\acountname%27


当我第一次调用它时它的响应代码是Ok我能够从中提取数据,但在第二次调用时,它给我状态代码 - 未经授权。我正在写工作流历史列表,其余的URL是正确的。它在浏览器中给我数据。

When I am calling it first time it response code is Ok and I am able to extract data from it but while calling 2nd time its giving me status code-Unauthorized. I am writing in the workflow history list and rest URL is correct. Its giving me data in browser.

Vishal Goyal

Vishal Goyal

推荐答案

Hi Vishal,

Hi Vishal,

您是否授予了工作流的应用权限?请检查以下步骤。

Did you grant the app permissions for workflow? Check the steps below.

1。激活网站功能 - 工作流程可以使用应用程序权限。

1. Activate site feature - Workflows can use app permissions.

2.导航到"网站设置"并单击"用户和权限"下的"网站应用程序权限"。

2.Navigate to Site Settings and click Site app permissions under Users and Permissions.

3。记下工作流程的应用程序ID - 工作流程应用程序标识符的一部分|和@。

3.Make note of the App ID for your Workflow – portion of the Workflow App Identifier between | and @.

示例:
$
i:0i.t | ms.sp.ext | fc7f8bbb-ac8f-4129-9459-dbdc6f56e2cc @ 2cf426a0-55c4-461e -81d7-b124b0746498

Example:
i:0i.t|ms.sp.ext|fc7f8bbb-ac8f-4129-9459-dbdc6f56e2cc@2cf426a0-55c4-461e-81d7-b124b0746498

4.使用租户管理员帐户,导航至< site-url> /_layouts/15/appinv.aspx。

4.With the tenant admin account, navigate to <site-url> /_layouts/15/appinv.aspx.

5.在appinv.aspx页面上,填写申请ID并点击ID框旁边的搜索按钮。

5.At the appinv.aspx page, fill in the Application ID and click the search button next to the ID box.

6.在xml下面复制到Permission Request XML框。

6.Copy below xml to Permission Request XML box.

<AppPermissionRequests>  
   <AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Manage" />  
</AppPermissionRequests>  

7.点击创建。

更多信息:

https://www.c-sharpcorner.com/article/get -user-profile-properties-data-in-sharepoint-designer-2013-workflow /

最好的问候,

Dennis


这篇关于SharePoint 2013 Designer工作流 - 调用Web服务两次从Sharepoint设计器工作流创建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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