Get BrevoContactFolder - tsubotitsch/Brevo GitHub Wiki

Get-BrevoContactFolder

SYNOPSIS

Retrieves contact folder(s) from the Brevo API.

SYNTAX

None (Default)

Get-BrevoContactFolder [-None] [-limit <Int32>] [-offset <Int32>] [-sort <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

ByFolderId

Get-BrevoContactFolder [-folderId <Int32>] [-None] [-limit <Int32>] [-offset <Int32>] [-sort <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

ByFolderName

Get-BrevoContactFolder [-Name <String>] [-None] [-limit <Int32>] [-offset <Int32>] [-sort <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Get-BrevoContactFolder function retrieves one or more contact folders from the Brevo API. You can retrieve a specific folder by its ID, filter by folder name, or list folders with optional pagination and sorting.

EXAMPLES

EXAMPLE 1

Get-BrevoContactFolder -folderId 123

Retrieves the contact folder with ID 123.

EXAMPLE 2

Get-BrevoContactFolder -limit 20 -offset 10 -sort asc

Retrieves a paginated list of contact folders, 20 per page, skipping the first 10, sorted in ascending order.

EXAMPLE 3

Get-BrevoContactFolder -Name "Marketing"

Retrieves contact folders with the name "Marketing".

PARAMETERS

-folderId

The ID of the folder to retrieve. If specified, retrieves a single folder by its ID.

Type: Int32
Parameter Sets: ByFolderId
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-limit

The number of documents per page (0 to 50). Defaults to 10 if not specified.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Name

The name of the folder to retrieve. If specified, filters the results to folders matching the given name.

Type: String
Parameter Sets: ByFolderName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-None

Reserved for future use. Currently has no effect.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-offset

The number of documents to skip before starting to collect the result set. Defaults to 0.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-sort

Sorts the results in ascending ("asc") or descending ("desc") order of record creation. The default order is "desc".

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️