Skip to content

Commit 55d8226

Browse files
Nico OrschelNico Orschel
authored andcommitted
Add warning for potential API version compatibility issues in Get-ADOPicklist
1 parent 534643d commit 55d8226

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Functions/AzureDevOps/Get-ADOPicklist.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
$q = [Collections.Queue]::new()
6464
}
6565
process {
66+
if ($ApiVersion -like '5.*' -and $sr) {
67+
Write-Warning "The API version '$ApiVersion' may not be compatible with field operations. Consider using '7.0' or later."
68+
}
69+
6670
if ($Orphan) {
6771
$allPicklists = @()
6872
$allUsedPicklists = @()

0 commit comments

Comments
 (0)