本文介绍了使用工作流在Sharepoint Designer中更改Sharepoint的内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图更改文档内容类型。我必须使用工作流,最好的方法是通过工作流在sharepoint desingner中创建。我知道如何在Visual Studio中进行编程

解决方案

我知道这是一个老问题,但是我知道了:

您可以使用SPD工作流程(SPD 2007或2010)执行此操作。您可以通过两种方式调用内容类型字段:


  1. 在工作流程中,使用如果[field]等于[value ]或将[字段]设置为[值]


  2. 对于 If语句,该字段将称为内容类型。 设置语句字段将称为内容类型ID。无论哪种情况,您都可以根据可用的内容类型分配值。


您确实需要在列表或库设置中启用内容类型。这是一个基于自定义列表的示例工作流示例,用于记录应付帐款条目:



列表列:请求类型(选择列,包括报销,部门费用,其他选项) / p>

列出内容类型:默认,应付帐款,应收帐款

 如果[请求类型]等于[报销] 
,然后将[内容类型ID]设置为[应付帐款]

工作流触发时,仅在请求类型列等于偿还额的情况下,才将内容类型设置为应付帐款。


i trying to change document content type. I must use workflow, and the best way will by workflow create in sharepoint desingner. I know how do it programatical in visual studio

解决方案

I know this is an old question, but I figured this out:

You CAN do this using a SPD workflow (SPD 2007 or 2010). You can call the content type field in two ways:

  1. In a workflow, use the "If [field] equals [value]" or the "Set [field] to [value]"

  2. For the "If" statement, the field will be called "Content Type". The "Set" statement field will be called "Content Type ID". In either case you can assign the value based on available content types.

You do need to enable content types on the list or library settings. Here's an example workflow based on a custom list to record Accounts Payable entries:

List Column: Request Type (choice column with the choices of Reimbursement, Department Expense, Other)

List Content Types: Default, Accounts Payable, Accounts Receivable

If [Request Type] equals [Reimbursement]
then Set [Content Type ID] to [Accounts Payable]

When the workflow fires, it will only set the Content Type to Accounts Payable if the Request Type column is equal to Reimbursement.

这篇关于使用工作流在Sharepoint Designer中更改Sharepoint的内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 02:02