Skip to content

Adding Custom Property Values to a Custom Property return bad 400 error? #216

Description

@LenHoover

Hi,

I need assistance please?
I am running the following command and receive a "bad 400 request" error :-(

Here's the code :
$StreamValue = 'Len_Testing123'
$allcurrentvalues = @((Get-QlikCustomProperty -id 311a92b5-5939-4a6e-a5ab-66c3bc97f5e8).choicevalues)
$allcurrentvalues += $StreamValue
Update-QlikCustomProperty -id 311a92b5-5939-4a6e-a5ab-66c3bc97f5e8 -choiceValues $allcurrentvalues

With running the command with -verbose in the Update-QlikCustomProperty function this is the detail :
VERBOSE: PUT https://xxxxxxxxx.com:4242/qrs/custompropertydefinition/311a92b5-5939-4a6e-a5ab-66c3bc97f5e8?xrfkey=zpqrauiqssesecuu with -1-byte payload
Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\1.23.1\functions\core.ps1:69 char:23

  • ... $result = Invoke-RestMethod @paramInvokeRestMethod @params

Any help will be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions