Public/New-GCFlowsDatatableRow.ps1
|
<# .SYNOPSIS Creates a new row in a flow datatable in Genesys Cloud. .DESCRIPTION Creates a new row in an existing flow datatable using the Genesys Cloud API. API Endpoint: POST /api/v2/flows/datatables/{datatableId}/rows .PARAMETER DatatableId The unique identifier of the datatable to add the row to. .PARAMETER Body The row data object to create. Should include the key column and any additional column values. .EXAMPLE $rowBody = @{ key = 'row-1'; column1 = 'value1' } New-GCFlowsDatatableRow -DatatableId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' -Body $rowBody Creates a new row in the specified datatable. .NOTES Genesys Cloud API: POST /api/v2/flows/datatables/{datatableId}/rows #> function New-GCFlowsDatatableRow { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$DatatableId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "flows/datatables/$DatatableId/rows" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |