<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Update Stream Custom Properties with Powershell and Qlik-CLI in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Update-Stream-Custom-Properties-with-Powershell-and-Qlik-CLI/m-p/1990013#M927</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i am currently working on a Powershell Script, using Qlik-CLI module, to add a Custom Properies to a Stream.&lt;/P&gt;
&lt;P&gt;Using the script below, i run into "(400) Bad Request" error, no matter what kind of datatype i use for the "-customProperties" parameter.&lt;/P&gt;
&lt;P&gt;I also tried the following with the same outcome:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- set the values manually within the QMC&lt;/P&gt;
&lt;P&gt;- get the custom Properties into a powershell variable&lt;/P&gt;
&lt;P&gt;- delete the Properties within the QMC&lt;/P&gt;
&lt;P&gt;- Try to set the values saved in the variable.&lt;/P&gt;
&lt;P&gt;$OldCustomProperies = $(get-qlikstream -full -filter $("name eq '"+$Streamname+"'")).customProperties&lt;/P&gt;
&lt;P&gt;Update-QlikStream -verbose -id $streamguid -customProperties $OldCustomProperies&lt;/P&gt;
&lt;P&gt;That is how the Custom Property Array should look:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Custom properties issue 1.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90797iDE9FE9E55F967E96/image-size/large?v=v2&amp;amp;px=999" role="button" title="Custom properties issue 1.jpg" alt="Custom properties issue 1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does anybody know how to use "Update-QlikStream -verbose -id $streamguid -customProperties $CustomProperies"?&lt;/P&gt;
&lt;P&gt;Is there anything i miss here or is there a better way to do this with Qlik .net SDK within Powershell?&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 08:52:53 GMT</pubDate>
    <dc:creator>ANBIS</dc:creator>
    <dc:date>2022-10-07T08:52:53Z</dc:date>
    <item>
      <title>Update Stream Custom Properties with Powershell and Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Update-Stream-Custom-Properties-with-Powershell-and-Qlik-CLI/m-p/1990013#M927</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i am currently working on a Powershell Script, using Qlik-CLI module, to add a Custom Properies to a Stream.&lt;/P&gt;
&lt;P&gt;Using the script below, i run into "(400) Bad Request" error, no matter what kind of datatype i use for the "-customProperties" parameter.&lt;/P&gt;
&lt;P&gt;I also tried the following with the same outcome:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- set the values manually within the QMC&lt;/P&gt;
&lt;P&gt;- get the custom Properties into a powershell variable&lt;/P&gt;
&lt;P&gt;- delete the Properties within the QMC&lt;/P&gt;
&lt;P&gt;- Try to set the values saved in the variable.&lt;/P&gt;
&lt;P&gt;$OldCustomProperies = $(get-qlikstream -full -filter $("name eq '"+$Streamname+"'")).customProperties&lt;/P&gt;
&lt;P&gt;Update-QlikStream -verbose -id $streamguid -customProperties $OldCustomProperies&lt;/P&gt;
&lt;P&gt;That is how the Custom Property Array should look:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Custom properties issue 1.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90797iDE9FE9E55F967E96/image-size/large?v=v2&amp;amp;px=999" role="button" title="Custom properties issue 1.jpg" alt="Custom properties issue 1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does anybody know how to use "Update-QlikStream -verbose -id $streamguid -customProperties $CustomProperies"?&lt;/P&gt;
&lt;P&gt;Is there anything i miss here or is there a better way to do this with Qlik .net SDK within Powershell?&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Update-Stream-Custom-Properties-with-Powershell-and-Qlik-CLI/m-p/1990013#M927</guid>
      <dc:creator>ANBIS</dc:creator>
      <dc:date>2022-10-07T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update Stream Custom Properties with Powershell and Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Update-Stream-Custom-Properties-with-Powershell-and-Qlik-CLI/m-p/1990662#M939</link>
      <description>&lt;P&gt;First of all you need to have the custom property defined for a resource type Stream. You can either define it using the Qlik-Cli or QMC.&lt;/P&gt;&lt;P&gt;You need to get the stream id and use it in the update action, or if you want to use a single line&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Update-QlikStream -id (get-qlikstream -full -filter ("name eq 'Everyone'")).id -customProperties cli=B&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;For the above command to work I defined a custom Properties named cli with values A,B,C&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Hope this help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 09:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Update-Stream-Custom-Properties-with-Powershell-and-Qlik-CLI/m-p/1990662#M939</guid>
      <dc:creator>Vincenzo_Esposito</dc:creator>
      <dc:date>2022-10-10T09:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update Stream Custom Properties with Powershell and Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Update-Stream-Custom-Properties-with-Powershell-and-Qlik-CLI/m-p/1991734#M957</link>
      <description>&lt;P&gt;Thank you very much for your help, it does work now!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 10:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Update-Stream-Custom-Properties-with-Powershell-and-Qlik-CLI/m-p/1991734#M957</guid>
      <dc:creator>ANBIS</dc:creator>
      <dc:date>2022-10-12T10:57:14Z</dc:date>
    </item>
  </channel>
</rss>

