質問

I am working on a sharepoint online classic team site, and i added a custom list which contain a field named "Responsibility ID" which is of type "Single line of text", and i set it as hidden inside the New/Edit forms using this PnP script:-

$fieldTitle = "ResponsibilityID"
$customfield = $Context.Site.RootWeb.Fields.GetByInternalNameOrTitle($fieldTitle) 
$customfield.SetShowInEditForm($true)
$customfield.SetShowInDisplayForm($true)
$customfield.UpdateAndPushChanges($true)
$Context.ExecuteQuery()

then i define the below workflow 2013 to get executed when item is added/updated, and i chose to update the "Responsiblity ID" to be equal to RES[ItemID]:- enter image description here

but the problem in my case is that whenever i update the item , the workflow will cause the item to be updated, as follow:- enter image description here

so not sure why the IF statement inside my above workflow is being ignored? so even if the "Responsiblity ID" equals RES[ItemID], the workflow will update the item.

役に立ちましたか?

解決

I have done a test in SharePoint online, i create a SharePoint 2013 platform workflow like the following and choose "Automatically update the workflow status to the current stage name".

enter image description here

I create an alert on the list which send me alert with all changes.

After i run the workflow, both the version and modified are changed, i receive an email alert which indicates the Stage1 has been changed.

enter image description here

So the problem is that if we choose "Automatically update the workflow status to the current stage name", it will change the Stage1 which results to the items be changed,then the version and modified are changed.

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top