Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ANBIS
Contributor II
Contributor II

Updating CustomProperties with Qlik-CLI Update-Qlikstream

Hi,

im quite new to Qlik-CLI and would like to update the Custom Properties of a newly created Stream.

Therefor i tried the following:

$Streamname = "Test"

New-QlikStream -name $Streamname

$Streamobject = get-qlikstream -filter "name eq '$Streamname'" -full

$streamguid = [System.Guid]::Parse($Streamobject.id)

$StreamCustomProperties = $Streamobject.customProperties

[Object[]]$NewStreamCustomProperties = "value=ADGroupNameXYZ"

$StreamCustomProperties += $NewStreamCustomProperties

Update-QlikStream -id $streamguid -customProperties $StreamCustomProperties -verbose

Unfortunately i get the following Error:

Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:66 char:23
+ ... $result = Invoke-RestMethod @paramInvokeRestMethod @params
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException

Does anyone can Help with this issue? I could not find anything in the Documentation about that.

Thank you in advance

Labels (2)
1 Reply
Shalini_Kannan
Support
Support

Hello,

Given below the link for more info on this. Please check;

https://ahaydon.github.io/Qlik-Cli-Windows/Update-QlikCustomProperty.html


Kind Regards
Shalini,
Qlik Support.