Get-KFItemData
Syntax
Get-KFItemData
[[-Key] <string>]
[-Item <list-item-object>]
[-ThrowErrors[:$true]]
Support
>= kenaflow 1.0.0
Return
Object.
Description
This is only available in SharePoint list or state machine workflows!
This cmdlet retrieves the data previously persisted with Set-KFItemData
.
If the requested object does not exist, then $null
is returned. There is no error.
Parameters
[-Key] <string>
The key that is used to read the serialized data.
[-Item <list-item-object>]
The SharePoint list item in whose context the data is serialized.
[-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
$item = Get-PnPListItem -List "Custom List" -Id 1
Set-KFItemData -Item $item -Key "kenaflow" -Data @{"is" = "a workflow engine for SharePoint, Email and PowerShell"}
Write-KFLog (Get-KFItemData -Item $item -Key "kenaflow")
Remove-KFItemData -Item $item -Key "kenaflow"