发送网站以进行审批 [英] Send a site for Approval

查看:101
本文介绍了发送网站以进行审批的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了一个在SharePoint中运行项目的系统。有一个网站集(Project Hub)然后我使用我使用pnp-export创建的模板创建一个新的子站点。这一切都运行正常,我可以创建新的项目网站,并且它们共享内容
类型,用于存储在网站集中的文档。每个站点都包含一个"站点管理员"。列表,其中包含详细列出项目名称,项目经理,项目阶段和状态字段的列和单个项目。

I have setup a system for running projects in SharePoint. There is a site collection (Project Hub) and then I create a new sub-site, using a template I made using pnp-export. This all works fine, I can create new project sites, and they all share content types for documents stored in the site collection. Each site contains a "Site Admin" list which contains columns and a single item detailing project name, project manager, project stage and status fields.

我希望能够在每个子站点主页上触发一个按钮允许审批者访问网站,检查文档然后批准的工作流程。我通过构建2个工作流程在一个站点上手动完成此操作,这两个工作流程都在"Site
Admin"上。列表,其中包含1个项目。

I would like to be able to have a button on each sub-site homepage that triggers a workflow to have an approver visit the site, check the documents and then approve it. I have done this manually on a single site by building 2 workflows, both on a "Site Admin" list, which has 1 item.

1:向具有该站点链接的硬编码审批者发送邮件

1: sends a mail to a hardcoded approver with link to the site

2:更新列表以设置网站管理项目上的列已批准。

2: updates the list to set a column on the site admin item to Approved.

我在主页上放置了2个html按钮,一个用于"发送网站以供审批",另一个用于"批准网站"。

I've put 2 html buttons on the home page, one for 'send site for approval', the other for 'approve site'.

我不知道如何使用我的网站模板(不包括工作流程)来解决这个问题。我想我会在网站集中创建一个可重用的工作流程并使用它,但我无法弄清楚如何构建按钮html触发正确的工作流程,
每次ID都不同。

I have no idea how to get this working using my site templates, which don't include workflow. I thought I would create a reusable workflow in the site collection and use that but I can't work out how to structure the button html trigger the right workflow, when the IDs will be different each time.

这必须是一个相当正常的任务,有没有人有这方面的经验?

This must be a fairly normal task, does anyone have any experience of this?

谢谢

V

推荐答案

您好Vurtual,

Hi Vurtual,

您可以添加按钮通过在主页中添加自定义代码来启动工作流程。

You could add the button to start the workflow by adding custom code in the home page.

有关更多详细信息,请参阅以下文章。

For more detailed information, refer to the articles below.

SharePoint:启动来自链接或按钮的站点工作流程。

SharePoint: Launch a Site Workflow from a Link or Button.

http://techtrainingnotes.blogspot.com/2015/10/sharepoint-launch-site-workflow-from.html

以编程方式启动工作流程。

Starting workflow programmatically.

http://blog.mmasood.com/2012/06/programatically-start-workflow.html

祝你好运,

Sara Fan


这篇关于发送网站以进行审批的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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