Set-KFFinalAuthor

Syntax

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

Support

>= kenaflow 2.0.47

Return

Nothing.

Description

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

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

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 "Author" field is not changed.

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