<?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 QSense: How to get the current stream name in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413298#M33313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Hi everybody!&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Is there any function or instruction that retrive the current stream name that is running the Qsense application on the server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I developed an application “DATA_Mayuda” in the hub server. &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The application connects to a database. Then read a table, generate a QVD, and finally drop the table. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; All that works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 0px 5.4pt; border: 1pt solid windowtext; border-image: none;" valign="top" width="589"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;LIB CONNECT TO 'Mesa de Ayuda QA';&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;WorkOrder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;SQL SELECT * FROM servicedesk.workorder;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;SPAN style="color: #4472c4; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;[lib://QlikShared/&lt;STRONG&gt;_Test&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;Drop Table WorkOrder;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Now, I need to store the QVD file according to the current stream. But I don´t know how to resolve it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="padding: 0px 5.4pt; border: currentColor; border-image: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 0px 5.4pt; border: 1pt solid windowtext; border-image: none;" valign="top" width="719"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;LIB CONNECT TO 'Mesa de Ayuda QA';&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;WorkOrder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;SQL SELECT * FROM servicedesk.workorder;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;EM style=": ; color: #548235; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;-- FunctionThatRetriveCurrentStream (&lt;/SPAN&gt;&lt;STRONG style="font-size: 12pt;"&gt;vCurrentStream&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;); ?????&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN lang="EN-US" style="color: #4472c4;"&gt;If &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: #548235;"&gt;vCurrentStream&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: #4472c4;"&gt; = “Testing” then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #4472c4; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;[lib://QlikShared/&lt;STRONG&gt;_Test&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #4472c4; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;[lib://QlikShared/&lt;STRONG&gt;_Production&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;End if&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;Drop Table WorkOrder;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; Thanks in advanced.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; mso-fareast-language: ES-AR; color: #c20000; font-size: 12pt; mso-ansi-language: ES; font-family: 'Calibri Light',sans-serif;"&gt;Ulises Yair Ogaz &lt;/STRONG&gt;&lt;SPAN lang="ES" style="color: navy; font-family: 'Calibri Light',sans-serif; mso-ansi-language: ES; mso-fareast-language: ES-AR;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;| &lt;STRONG&gt;Analista Técnico/Desarrollador JDE - SISTEMAS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="ES" style="color: navy; font-family: 'Calibri Light',sans-serif; font-size: 11pt; mso-ansi-language: ES; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-fareast-language: ES-AR; mso-bidi-language: AR-SA;"&gt;Laboratorios Casasco S.A.I.C.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2017 15:10:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-15T15:10:10Z</dc:date>
    <item>
      <title>QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413298#M33313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Hi everybody!&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Is there any function or instruction that retrive the current stream name that is running the Qsense application on the server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I developed an application “DATA_Mayuda” in the hub server. &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The application connects to a database. Then read a table, generate a QVD, and finally drop the table. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; All that works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 0px 5.4pt; border: 1pt solid windowtext; border-image: none;" valign="top" width="589"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;LIB CONNECT TO 'Mesa de Ayuda QA';&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;WorkOrder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;SQL SELECT * FROM servicedesk.workorder;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;SPAN style="color: #4472c4; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;[lib://QlikShared/&lt;STRONG&gt;_Test&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;Drop Table WorkOrder;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Now, I need to store the QVD file according to the current stream. But I don´t know how to resolve it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="padding: 0px 5.4pt; border: currentColor; border-image: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 0px 5.4pt; border: 1pt solid windowtext; border-image: none;" valign="top" width="719"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;LIB CONNECT TO 'Mesa de Ayuda QA';&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;WorkOrder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;SQL SELECT * FROM servicedesk.workorder;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;EM style=": ; color: #548235; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;-- FunctionThatRetriveCurrentStream (&lt;/SPAN&gt;&lt;STRONG style="font-size: 12pt;"&gt;vCurrentStream&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;); ?????&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN lang="EN-US" style="color: #4472c4;"&gt;If &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: #548235;"&gt;vCurrentStream&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: #4472c4;"&gt; = “Testing” then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #4472c4; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;[lib://QlikShared/&lt;STRONG&gt;_Test&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #4472c4; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;[lib://QlikShared/&lt;STRONG&gt;_Production&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;End if&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #4472c4; font-size: 12pt; font-family: Calibri;"&gt;Drop Table WorkOrder;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; Thanks in advanced.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; mso-fareast-language: ES-AR; color: #c20000; font-size: 12pt; mso-ansi-language: ES; font-family: 'Calibri Light',sans-serif;"&gt;Ulises Yair Ogaz &lt;/STRONG&gt;&lt;SPAN lang="ES" style="color: navy; font-family: 'Calibri Light',sans-serif; mso-ansi-language: ES; mso-fareast-language: ES-AR;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;| &lt;STRONG&gt;Analista Técnico/Desarrollador JDE - SISTEMAS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="ES" style="color: navy; font-family: 'Calibri Light',sans-serif; font-size: 11pt; mso-ansi-language: ES; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-fareast-language: ES-AR; mso-bidi-language: AR-SA;"&gt;Laboratorios Casasco S.A.I.C.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 15:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413298#M33313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-15T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413299#M33314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You posted a Qlik Sense question in a forum called "QlikView App Development". Please move your question to an appropriate Qlik Sense forum by following the steps specified here: &lt;A href="https://community.qlik.com/thread/61072"&gt;QlikCommunity Tip: How to move your discussion thread&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 16:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413299#M33314</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-12-15T16:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413300#M33315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ulises,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's no function to get the stream of an app in the script side.&lt;/P&gt;&lt;P&gt;For what you want, you could do two apps differentiating between Test and Prod environment.&lt;/P&gt;&lt;P&gt;Would be the same code, but with different stores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Test env&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;LIB CONNECT TO 'Mesa de Ayuda QA';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;WorkOrder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;SQL SELECT * FROM servicedesk.workorder;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #4472c4; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #4472c4; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12pt;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="color: #4472c4; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12pt; background: yellow;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;[lib://QlikShared/&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;_Test&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;Drop Table WorkOrder;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;- Prod env&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;LIB CONNECT TO 'Mesa de Ayuda QA';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;WorkOrder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;SQL SELECT * FROM servicedesk.workorder;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #4472c4; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;STORE WorkOrder into &lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: Calibri; color: #4472c4; background: yellow;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;[lib://QlikShared/&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;_Production&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;\Mesa de Ayuda\QVD\workorder.qvd];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: Calibri; color: #4472c4;"&gt;Drop Table WorkOrder;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 16:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413300#M33315</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-12-15T16:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413301#M33316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter. I've moved it to &lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;Qlik Sense - App Development &amp;amp; Usage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #c20000; font-family: 'Calibri Light',sans-serif; font-size: 12pt; mso-fareast-language: ES-AR; mso-ansi-language: ES;"&gt;Ulises Yair Ogaz &lt;/STRONG&gt;&lt;SPAN lang="ES" style="color: navy; font-family: 'Calibri Light',sans-serif; mso-fareast-language: ES-AR; mso-ansi-language: ES;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;| &lt;STRONG&gt;Analista Técnico/Desarrollador JDE - SISTEMAS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="ES" style="color: navy; font-family: 'Calibri Light',sans-serif; font-size: 11pt; mso-fareast-language: ES-AR; mso-ansi-language: ES; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-language: AR-SA;"&gt;Laboratorios Casasco S.A.I.C.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 19:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413301#M33316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-15T19:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413302#M33317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this using the Qlik monitoring connector:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the function I've done this morning (based on the load script in the Operations Monitoring app) to do exactly the same issue you're looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function is based on the load script from the Operations Monitoring App:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Monitoring/Content/OperationsMonitor/Operations-monitor-app.htm" title="https://help.qlik.com/en-US/sense/June2018/Subsystems/Monitoring/Content/OperationsMonitor/Operations-monitor-app.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Monitoring/Content/OperationsMonitor/Operations-monitor-app.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You pass the ObjectID of the app you care about (you can get that using function: DocumentName())&amp;nbsp; and when the function completes the global variable 'vReturn' will hold either the Stream name or 'Unpublished'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SUB fGetAppStream(id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; LIB CONNECT TO 'monitor_apps_REST_app';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; RestConnectorMasterTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; SQL SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id" AS "id_u4",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" AS "name_u3",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "published",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__KEY_root",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" AS "name_u2",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__FK_stream"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM "stream" FK "__FK_stream")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//&amp;nbsp;&amp;nbsp; LET NumRows_monitor_apps_REST_app = NoOfRows('RestConnectorMasterTable');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; map_stream:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Mapping LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [__FK_stream] AS [__KEY_root],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [name_u2] AS Stream &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; RESIDENT RestConnectorMasterTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; WHERE NOT IsNull([__FK_stream]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; App_Stream:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [id_u4] AS ObjectId,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name_u3 as [App Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('map_stream',__KEY_root,'Unpublished') as [App_Stream]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; RESIDENT RestConnectorMasterTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; WHERE NOT IsNull([__KEY_root])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and id_u4='$(id)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; DROP TABLE RestConnectorMasterTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; if NoOfRows(App_Stream) &amp;lt;&amp;gt; 1 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; trace ERROR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set vReturn='Unpublished';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; let vReturn = peek('App_Stream','0','App_Stream');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; drop table App_Stream;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ENDSUB&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 23:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1413302#M33317</guid>
      <dc:creator>pjaredchurch</dc:creator>
      <dc:date>2018-08-23T23:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1521752#M37406</link>
      <description>&lt;P&gt;This should be simpler, and should always work based on database integrity.&lt;/P&gt;&lt;PRE&gt;// Get The Stream Name or Unpublished 
let vDoc = DocumentName();

LIB CONNECT TO 'Repository';
 
APPS:
LOAD ID as App_ID, Stream_ID;
SQL SELECT "ID", "Stream_ID" FROM "QSR"."public"."Apps" WHERE "ID" = '$(vDoc)';

LEFT JOIN(APPS)
LOAD ID as Stream_ID, Name as Stream_Name;
SQL SELECT "ID", "Name" FROM "QSR"."public"."Streams";

let vStream = peek('Stream_Name',0,'APPS');

If IsNull(vStream) then 
	let vStream = 'Unpublished';
end if;

drop table APPS;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Dec 2018 17:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1521752#M37406</guid>
      <dc:creator>yann_courtet</dc:creator>
      <dc:date>2018-12-17T17:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1903594#M74537</link>
      <description>&lt;P&gt;Hi Yann,&lt;/P&gt;
&lt;P&gt;when I run this code, I get the message : "&lt;SPAN&gt;Connection 'Repository' not found".&amp;nbsp; Do you have an idea what could be wrong?&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 14:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1903594#M74537</guid>
      <dc:creator>Raymzzz</dc:creator>
      <dc:date>2022-03-10T14:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1903613#M74539</link>
      <description>&lt;P&gt;You should create a connection to your&amp;nbsp; repository database first.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 14:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/1903613#M74539</guid>
      <dc:creator>yann_courtet</dc:creator>
      <dc:date>2022-03-10T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/2040505#M85734</link>
      <description>&lt;P&gt;Thanks for this solution. It works like a charm.&lt;/P&gt;
&lt;P&gt;Does it bring a security issue? And if yes, how could this be handled?&lt;/P&gt;
&lt;P&gt;(In my environment, many apps with several developers would profit from using this mechanism in their scripts: Based on the stream, folder connections for include commands and for QVD data read/write could be switched when an app goes from a DEV stream to a PROD stream. But then, the qliksense service user need to have access to the repository db connection. Using this, any developer can fully read the repository, after its app has been published... We have just started the migration from QlikView to Qlik Sense. So, my knowledge is still very limited. Please excuse if my question does not make sense...)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 16:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/2040505#M85734</guid>
      <dc:creator>hewemel1</dc:creator>
      <dc:date>2023-02-21T16:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: QSense: How to get the current stream name</title>
      <link>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/2530854#M107878</link>
      <description>&lt;P&gt;Could I make a specific App that store this data (list of Apps with Streams) into a QVD, so i just provide the needed information, not the full connection?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 22:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QSense-How-to-get-the-current-stream-name/m-p/2530854#M107878</guid>
      <dc:creator>marcionaraujo</dc:creator>
      <dc:date>2025-09-15T22:29:17Z</dc:date>
    </item>
  </channel>
</rss>

