<?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 Enigma - exportApp throwing &amp;quot;Invalid Parameters&amp;quot; in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-exportApp-throwing-quot-Invalid-Parameters-quot/m-p/2036725#M18094</link>
    <description>&lt;P&gt;Below is some simple code that is giving me problems. I have two problems. The first is that I can't even get it to run without the Invalid Parameters problem. The second is that I am not quite sure where a good place to store these qvf files is. I see in the JSON request they store them in a folder like&amp;nbsp;/tempcontent/someHashID/filename.qvf . The code below executes and does give me the objectIDs so I know that enigma is opening the app without data, getting me the ids, but then it is failing.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; const appId = "b012bf2f-797a-418a-9067-6f789dc487af"; //--Dummy Data App

const schema = await (await fetch('https://unpkg.com/enigma.js/schemas/3.2.json')).json();
	
const url = `wss://${config.host + (config.port ? ":" + config.port : "") + config.prefix}app/${appId}`;
	
const session = window.enigma.create({ schema, url }); //---Session API entry

const global = await session.open(); //---Global API entry---
	
const doc = await global.openDoc({
	  "qDocName": appId,
	  "qNoData": true
	}); //----Entry into Doc API with no Data---
	
const allObjects = await doc.getAllInfos({});
		[
		  {
			"qId": "value",
			"qType": "value"
		  }
		]
		
let ids = [] //---Holder for all ids of all objects in App
allObjects.forEach(obj =&amp;gt; {
		ids.push(obj.qId)
	})
		
const result = await global.exportApp({
	  "qTargetPath": "/",
	  "qSrcAppId": appId,
	  "qIds": ids,
	  "qNoData": true
	});
	
console.log(result)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 10 Feb 2023 20:17:32 GMT</pubDate>
    <dc:creator>danelooman</dc:creator>
    <dc:date>2023-02-10T20:17:32Z</dc:date>
    <item>
      <title>Enigma - exportApp throwing "Invalid Parameters"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-exportApp-throwing-quot-Invalid-Parameters-quot/m-p/2036725#M18094</link>
      <description>&lt;P&gt;Below is some simple code that is giving me problems. I have two problems. The first is that I can't even get it to run without the Invalid Parameters problem. The second is that I am not quite sure where a good place to store these qvf files is. I see in the JSON request they store them in a folder like&amp;nbsp;/tempcontent/someHashID/filename.qvf . The code below executes and does give me the objectIDs so I know that enigma is opening the app without data, getting me the ids, but then it is failing.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; const appId = "b012bf2f-797a-418a-9067-6f789dc487af"; //--Dummy Data App

const schema = await (await fetch('https://unpkg.com/enigma.js/schemas/3.2.json')).json();
	
const url = `wss://${config.host + (config.port ? ":" + config.port : "") + config.prefix}app/${appId}`;
	
const session = window.enigma.create({ schema, url }); //---Session API entry

const global = await session.open(); //---Global API entry---
	
const doc = await global.openDoc({
	  "qDocName": appId,
	  "qNoData": true
	}); //----Entry into Doc API with no Data---
	
const allObjects = await doc.getAllInfos({});
		[
		  {
			"qId": "value",
			"qType": "value"
		  }
		]
		
let ids = [] //---Holder for all ids of all objects in App
allObjects.forEach(obj =&amp;gt; {
		ids.push(obj.qId)
	})
		
const result = await global.exportApp({
	  "qTargetPath": "/",
	  "qSrcAppId": appId,
	  "qIds": ids,
	  "qNoData": true
	});
	
console.log(result)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Feb 2023 20:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-exportApp-throwing-quot-Invalid-Parameters-quot/m-p/2036725#M18094</guid>
      <dc:creator>danelooman</dc:creator>
      <dc:date>2023-02-10T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Enigma - exportApp throwing "Invalid Parameters"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-exportApp-throwing-quot-Invalid-Parameters-quot/m-p/2036997#M18096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82797"&gt;@danelooman&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This is strange, it should have worked, please report the issue.&lt;BR /&gt;&lt;BR /&gt;Regarding export app, the easier way will be to use the QRS API docs:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2022/APIs/RepositoryServiceAPI/index.html?page=986" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/November2022/APIs/RepositoryServiceAPI/index.html?page=986&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-exportApp-throwing-quot-Invalid-Parameters-quot/m-p/2036997#M18096</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2023-02-13T07:06:16Z</dc:date>
    </item>
  </channel>
</rss>

