Set-KFFinalEditor

Syntax

Set-KFFinalEditor
  [-User] <string-or-object>
  [-ThrowErrors[:$true]]

Support

>= kenaflow 2.0.47

Return

Nothing.

Description

It is only available in SharePoint list and state machine workflows with item context.

With this cmdlet you can specify a SharePoint user that will be set as "Editor" of the list item or file at the end of the processing of the current item.

Normally kenaflow will set the "last editor" at the end of the item processing to be as transparent as possible to the users. The "last editor" normally is a person that edits the list item. After processing the item by a workflow it would have the kenaflow service account as "last editor". So kenaflow re-sets the "last editor" with the last known one.

If you use this cmdlet you can force a user object to be set.

You can use it multiple times in a workflow script. The calls replace the previoius set values.

If you set $null the original "last editor" is set!

Parameters

[-User] <string-or-object>

A string that gets resolved to exactly 1 user object. Or a user object.

[-ThrowErrors[:$true]]

This is a default parameter for all kenaflow cmdlets. If set to $true (default!) the engine will pass exception within the cmdlet to the script for further handling.

Example

Set-KFFinalAuthor -User "{{Editor}}"

Discussion