Public/Get-GCConversationsEmails.ps1
|
<# .SYNOPSIS Retrieves active email conversations. .DESCRIPTION Gets a paginated list of active email conversations from Genesys Cloud. Calls GET /api/v2/conversations/emails. .PARAMETER PageSize The number of results per page. Defaults to 25. .PARAMETER PageNumber The page number to retrieve. Defaults to 1. .EXAMPLE Get-GCConversationsEmails .EXAMPLE Get-GCConversationsEmails -PageSize 50 -PageNumber 2 .NOTES Genesys Cloud API: GET /api/v2/conversations/emails #> function Get-GCConversationsEmails { [CmdletBinding()] param( [Parameter(Mandatory = $false)] [int]$PageSize = 25, [Parameter(Mandatory = $false)] [int]$PageNumber = 1 ) $endpoint = "conversations/emails" $queryParams = @{ pageSize = $PageSize pageNumber = $PageNumber } return Invoke-GCApiRequest -Endpoint $endpoint -Method GET -QueryParameters $queryParams } |