Public/Get-GCFlowsDatatableRow.ps1

<#
.SYNOPSIS
    Retrieves a specific row from a flow datatable in Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve a single row from a flow datatable by datatable ID and row ID.
    API Endpoint: GET /api/v2/flows/datatables/{datatableId}/rows/{rowId}

.PARAMETER DatatableId
    The unique identifier of the datatable.

.PARAMETER RowId
    The unique identifier of the row to retrieve.

.EXAMPLE
    Get-GCFlowsDatatableRow -DatatableId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' -RowId 'row-key-1'
    Retrieves the specified row from the datatable.

.NOTES
    Genesys Cloud API: GET /api/v2/flows/datatables/{datatableId}/rows/{rowId}
#>

function Get-GCFlowsDatatableRow {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$DatatableId,

        [Parameter(Mandatory = $true)]
        [string]$RowId
    )

    $endpoint = "flows/datatables/$DatatableId/rows/$RowId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}