QlikSenseScripts icon indicating copy to clipboard operation
QlikSenseScripts copied to clipboard

Adding Custom Property Values to a Custom Property?

Open LenHoover opened this issue 2 years ago • 1 comments

Hi,

How do i go about adding custom property values to a custom property?

Sceanario :

Custom Property is called Len_Test which is of Resource Type = Streams. This custom property has an existing custom property value called "123". How do i add another custom property value "456" programmatically ?

Thanks

LenHoover avatar Mar 04 '22 09:03 LenHoover

I've tried using the Update-QlikCustomProperty function however i get the following error : The remote server returned an error: (400) Bad Request.

$allcurrentvalues = $(Get-QlikCustomProperty -id 5048e219-c48b-4f45-861a-20012cd2df34).choicevalues

$allcurrentvalues += "456"

Update-QlikCustomProperty -id 5048e219-c48b-4f45-861a-20012cd2df34 -choiceValues $allcurrentvalues

LenHoover avatar Mar 08 '22 08:03 LenHoover