App步骤失败 [英] App Step fails

查看:97
本文介绍了App步骤失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网站集结构:



SharePoint Online

$
公司网站

子站点(部门)

子站点(QADept)

Corp Site拥有批准的供应商清单

Corp Site as a LookupColumn指向供应商列表

Site collection Stucture:

SharePoint Online

Corp Site
Sub-Site (Division)
Sub-Sub-Site(QADept)
Corp Site has the approved list of Suppliers
Corp Site as a LookupColumn pointed at the Supplier List

我在QA Dept网站'SupplierVisit'中从事件类型创建了一个新的内容类型,并添加了来自Corp网站的Lookup

使用新的SupplierVisit内容类型创建新日历

创建工作流程以在将新事件添加到日历时启动批准任务。



一切正常,只要批准/拒绝/通知等等,但是,如果我尝试在通知中包含查询中的供应商名称,工作流程永远不会超过该点。



我按照以下步骤操作:https://docs.microsoft.com/en-us/sharepoint/dev/general-development/create-a-workflow-with-elevated-权限按使用最的SharePoint工作flo

我做了激活'工作流程可以使用应用程序权限'

我在公司网站上的appinv.aspx做了'提升/信任工作流程' $ b我在工作流程中取消选中了"使用阶段名称自动更新",因为我要创建一个新的WorkFlow,尽可能简单:



我创建了一个记录开始的日志步骤

我创建了一个App Step,只是将供应商名称(CurrentItem:Supplier)记录到工作流历史记录中。

我创建了一个日志步骤,以便在App Step之后进行记录。

工作流程永远不会超过App Step。



我是全新的SharePoint和我不知道我还不知道的是什么。关于我可能错过哪一件事的任何想法?

I Created a new Content Type at the QA Dept site 'SupplierVisit' from the Event Type and added the Lookup from the Corp site
Created a new calendar using the new SupplierVisit content type
Created a work flow to start an approval task when a new event is added to the calendar.

Everything works as far as approvals/rejections/notifications etc But, if I try to include the Name of the supplier from the lookup in the notification, the workflow never gets past that point.

I followed the steps at: https://docs.microsoft.com/en-us/sharepoint/dev/general-development/create-a-workflow-with-elevated-permissions-by-using-the-sharepoint-workflo
I did Activate 'Workflows can use app permissions'
I did the 'Elevate/Trust Workflow thingy on appinv.aspx at the corp site
I un-checked the 'Automatically update with stage name' on the workflow

To make it as simple as possible I created a new WorkFlow:
I created a log step to log the start
I created a App Step to just log the Supplier name (CurrentItem:Supplier) to the Workflow history.
I created a log step to log after the App Step.
The workflow never gets past the App Step.

I am brand new to SharePoint and I don't know what I don't know yet. Any ideas on what piece I may have missed?

推荐答案

你需要通过导航到此路径为应用程序授予应用程序权限,因为工作流尝试从根站点检索LookUp列,因此它没有访问权限。请按照以下步骤授予应用程序权限

You need to give the app permission to your workflow by navigating to this path, because the workflow trying to retrieve the LookUp column from root site there it has no access permission. Please give the app permission by following this step

网站设置 - >网站操作 - >管理网站功能激活"工作流程可以使用应用程序权限"。

Site Settings-->Site Action-->Manage Site Features there activate the "Workflow can use app permission".

如果您在工作流程中的查阅列使用方面遇到此问题,

Still if you are facing this issue on lookup column usage in the workflow,

请在此处阅读进一步输入


这篇关于App步骤失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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