0

我在 2010 年有一个 SharePoint Designer 工作流。此工作流与列表相关联,当它运行时,应将当前项目复制回列表中,然后在工作流启动时使用变量集更新该新创建项目中的字段。基本上它会复制一个项目,然后更改新创建项目的 1 个值。

我需要更新的字段是另一个列表的查找字段。由于某种原因,SharePoint 不喜欢这样,并且每次都会出错。

我尝试将字段的值设置为以下内容,所有这些都在运行时失败。

ID of the lookup item
ID;#VALUE of the lookup item
VALUE of the lookup item
1;#201101 which is a hardcoded value I know is correct...just trying to test here

在这一点上,我没有想法。任何人都可以帮忙吗?

有关更多详细信息,工作流有 1 个步骤,其中包含以下操作:

  1. 将当前项目中的项目复制到 [Parameter:ListURL] 中的列表,不要覆盖现有项目。将结果列表项 ID 存储在 [Variable:DuplicateID] 中。
  2. 然后将 [Variable:Reporting Month ID] 设置为 [Reporting Months:ID]。(这是使用在工作流启动时设置的变量 [Variable:Reporting Month] 查找报告月份列表)。
  3. 然后更新当前列表中的项目(该项目由 [Variable:DuplicateID] 确定,我尝试使用各种组合 [Variable:Reporting Month ID] 和 [Variable:Reporting Month] 设置当前列表中 Reporting Month 字段的值

运行工作流时出现的错误如下。

The workflow could not update the item, possibly because one or more columns for the item require a different type of information.
4

1 回答 1

1

现在有同样的问题,似乎这是一个 spd-bug。我还想将带有目标项 id 的“变量:创建”写回到目标列表中的查找字段中。我也总是遇到同样的错误。还通过使用该值更新注释字段来检查该值,并且它是一个整数值。但我无法更新查找值。

我的解决方案:

在目标列表中创建第二个工作流,在目标列表中“更新列表项”(使用当前项的 id 更新查找值)并定义工作流通过创建自动启动。

这对我来说很好。它需要几秒钟才能看到查找值,但这对我来说不是问题。

于 2012-03-09T08:47:05.663 回答