API / PowerShell involved:
Using the PowerShell reference example provided on the page (I replaced the id and only specified “manager” for the grantRequestApprovaSchemes param locally on my end) would result in an error:
$Id = "2c91808a7813090a017814121e121518" # String | Entitlement ID
$XSailPointExperimental = "true" # String | Use this header to enable this experimental API. (default to "true")
$EntitlementRequestConfig = @"
{
"requestCommentsRequired" : false,
"deniedCommentsRequired" : false,
"allowEntitlementRequest" : true,
"grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584"
}
"@
# Replace Entitlement Request Config
try {
$Result = ConvertFrom-JsonToEntitlementRequestConfig -Json $EntitlementRequestConfig
Send-V2024EntitlementRequestConfig -Id $Id -XSailPointExperimental $XSailPointExperimental -EntitlementRequestConfig $Result
# Below is a request that includes all optional parameters
# Send-V2024EntitlementRequestConfig -Id $Id -XSailPointExperimental $XSailPointExperimental -EntitlementRequestConfig $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Send-V2024EntitlementRequestConfig"
Write-Host $_.ErrorDetails
}
Error:
Invoke-V2024ApiClient: <path>\Modules\PSSailpoint.V2024\1.4.12\Api\V2024EntitlementsApi.ps1:1119
Line |
1119 | $LocalVarResult = Invoke-V2024ApiClient -Method 'PUT'
| Cannot index into a null array.
Do the SDK releases not go through automated testing against the reference example?
#BugReport #InadequateReleaseTesting