在工作流中设置(内容)审批状态 [Sharepoint 2013]

Set (content) approval status in workflow [Sharepoint 2013]

我有一个包含已批准和未批准项目的自定义列表。

现在我创建了一个工作流来更改其中一个字段的值。

问题是:在 运行 该工作流之后,该项目的批准状态自动设置为 "Pending"。但是我不想改变这个状态。

我尝试切换 on/off 复选框 "Automatically update the workflow status to the current stage name" 但没有效果。 我还尝试在工作流程中设置变量:

Set Variable: ApprovStatus to CurrentElement:Approval Status

then Update item in CurrentElement

then Set Workflow Status to Variable: ApprovStatus


Go to End of Workflow

如何保持当前的批准状态(或将其设置为之前的值)?

当一个项目被(手动)批准后,它也会起作用吗?

我明白了! 解决方案是使用 Sharepoint 2010 工作流程而不是 2013:

    Set Variable: AprSt to Current Element:Approval Status
    Update item in Current Element
    If Variable: AprSt not equals 0;#Approved
        Set content approval status to Pending with comments
    Else
        Set content approval status to Approved with comments

现在可以了。