<< Click to Display Table of Contents >> RayFlow PowerShell API > 7.3 > Implementation Guide > Working with RayFlow PowerShell API Updating Data Fields |
By using RayFlow PowerShell API, the user can easily update data field values, either by calculating the new value from existing data fields or just passing an arbitrary data.
Start with getting a RayFlow task of interest, where the data field is to be updated. Then invoke the Update-RayFlowTaskDataField and pass the required task, datafield and value, for example:
### Assuming $task is a RayFlow task from Get-RayFlowTask command let...
Update-RayFlowTaskDataField -Task $task -DataField "Application language" -Value "ENG"
The value is always a string, but will be parsed accordingly depending on the type of the datafield. For example:
•For boolean types you can write True or False to indicate the new value.
•Options and multi-select options can be specified using their display names or unique identifiers.
•For the date-time field it should be RFC-compatible representation of a date.