<?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 Re: Qlik CLI set variable problem (SaaS) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-CLI-set-variable-problem-SaaS/m-p/1737834#M13167</link>
    <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The qlik-cli command&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable set&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;consumes a json file containing a &lt;A href="https://qlik.dev/apis/json-rpc/qix/schemas#%23%2Fdefinitions%2Fschemas%2Fentries%2FGenericVariableProperties" target="_blank"&gt;&lt;SPAN class="s3"&gt;GenericVariable object&lt;/SPAN&gt;&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;With your example, create a json file (var.json) containing:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "qInfo": {
    "qId": "myId",
    "qType": "variable"
  },
  "qName": "v",
  "qDefinition": "1"
}&lt;/LI-CODE&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;and use&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable set var.json -app "xxxx"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;If you already have variables in the app, you can list them and view the content to get to know the format more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable ls --app "xxxx"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable properties variable-name --app "xxxx"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 15:19:26 GMT</pubDate>
    <dc:creator>bgk</dc:creator>
    <dc:date>2020-08-21T15:19:26Z</dc:date>
    <item>
      <title>Qlik CLI set variable problem (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-CLI-set-variable-problem-SaaS/m-p/1737796#M13165</link>
      <description>&lt;P&gt;I'm passing problem's to set a variable using Qlik-CLI.&lt;/P&gt;&lt;P&gt;I know a part of syntax to pass a variable, using the command in Power Shell:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;qlik app variable set --help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;this returns for me:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set or update the variables in the current app&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Usage:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;qlik app variable set &amp;lt;glob-pattern-path-to-variables-files.json&amp;gt; [flags]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Examples:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;qlik app variable set ./my-variables-glob-path.json&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Flags:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-h, --help help for set&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;--no-save Do not save the app&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Global Flags:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-a, --app string Name or identifier of the app&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-c, --config string path/to/config.yml where parameters can be set instead of on the command line&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;--context string Name of the context used when connecting to Qlik Associative Engine&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;--headers stringToString Http headers to use when connecting to Qlik Associative Engine (default [])&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;--insecure Enabling insecure will make it possible to connect using self signed certificates&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;--json Returns output in JSON format if possible, disables verbose and traffic output&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-s, --server string URL to a Qlik Product, a local engine, cluster or sense-enterprise&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-v, --verbose Log extra information&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try again using the parameters like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;qlik app variable set { v: "1" } --app "xxxxxxxxxxxxxxxxxx"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I get an error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error: unknown shorthand flag: 'e' in -encodedCommand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Where is the systax error?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-CLI-set-variable-problem-SaaS/m-p/1737796#M13165</guid>
      <dc:creator>nilton_tarea</dc:creator>
      <dc:date>2024-11-16T01:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik CLI set variable problem (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-CLI-set-variable-problem-SaaS/m-p/1737834#M13167</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The qlik-cli command&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable set&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;consumes a json file containing a &lt;A href="https://qlik.dev/apis/json-rpc/qix/schemas#%23%2Fdefinitions%2Fschemas%2Fentries%2FGenericVariableProperties" target="_blank"&gt;&lt;SPAN class="s3"&gt;GenericVariable object&lt;/SPAN&gt;&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;With your example, create a json file (var.json) containing:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "qInfo": {
    "qId": "myId",
    "qType": "variable"
  },
  "qName": "v",
  "qDefinition": "1"
}&lt;/LI-CODE&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;and use&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable set var.json -app "xxxx"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;If you already have variables in the app, you can list them and view the content to get to know the format more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable ls --app "xxxx"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;qlik app variable properties variable-name --app "xxxx"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-CLI-set-variable-problem-SaaS/m-p/1737834#M13167</guid>
      <dc:creator>bgk</dc:creator>
      <dc:date>2020-08-21T15:19:26Z</dc:date>
    </item>
  </channel>
</rss>

