我在 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 个步骤,其中包含以下操作:
- 将当前项目中的项目复制到 [Parameter:ListURL] 中的列表,不要覆盖现有项目。将结果列表项 ID 存储在 [Variable:DuplicateID] 中。
- 然后将 [Variable:Reporting Month ID] 设置为 [Reporting Months:ID]。(这是使用在工作流启动时设置的变量 [Variable:Reporting Month] 查找报告月份列表)。
- 然后更新当前列表中的项目(该项目由 [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.