<?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: GETLineage API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2044363#M18216</link>
    <description>&lt;P&gt;Thanks Marc... unfortunately the method doesn't appear to produce consistent outputs.&lt;/P&gt;
&lt;P&gt;Whilst a neater and more efficient method, Comparing to the reload script output it doesn't appear to be complete/reliable, unless I'm missing something&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 10:38:08 GMT</pubDate>
    <dc:creator>PhillG</dc:creator>
    <dc:date>2023-03-02T10:38:08Z</dc:date>
    <item>
      <title>GETLineage API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2042513#M18181</link>
      <description>&lt;P&gt;Looking to use the GetLineage API to get a hold on what is and isn't being used...&lt;BR /&gt;&lt;BR /&gt;Not ready to go to SaaS and historically have used Nodegraph, so neither available options, and other than loading through Script Logs, was hoping this may be viable.&lt;/P&gt;
&lt;P&gt;Have the connection to the Engine API through Powershell, just not sure how to then call the GetLineage method, to return the results.&lt;/P&gt;
&lt;P&gt;Any ideas, pointers, or examples gratefully received, or if there is another way, open to ideas thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 11:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2042513#M18181</guid>
      <dc:creator>PhillG</dc:creator>
      <dc:date>2023-02-27T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: GETLineage API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2042819#M18185</link>
      <description>&lt;P&gt;So there are two options here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option 1 is using the QlikSenseSDK, which I assume you are doing already based on the "connection to the Engine API" in which case once you have the App you can just call the GetLineage method like so&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;#Get the Engine AppIdentifier using the App ID
$QEAppIdentifier = [Qlik.Engine.LocationExtensions]::AppWithId($Location,$AppID)

#Get the Engine App
$QEApp = [Qlik.Engine.LocationExtensions]::App($Location, $QEAppIdentifier)

#Call the GetLineage method
$QEApp.GetLineage()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the second option is calling the REST API. (Example uses &lt;A href="https://github.com/QlikProfessionalServices/QlikSenseCLI/releases/latest" target="_blank" rel="noopener"&gt;QlikSenseCLI&lt;/A&gt;)&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;#Get the Apps Lineage data
$JSONAppLineage = Invoke-QSGet "https://$($QSECMHost)/api/v1/apps/$($AppID)/data/Lineage" -Raw
$AppLineage = $JSONAppLineage |ConvertFrom-Json
$AppLineage&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example 1 Full:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$AppID = 'ef47c8d8-9049-4ce9-880e-0289422f82c1'
$QSEURI = "https://$($env:COMPUTERNAME)"

#Need to be added once per Powershell Process 
add-type -path ".\bin\Newtonsoft\6.0.8\lib\net45\Newtonsoft.Json.dll"
add-type -path ".\bin\QlikSenseSDK\16.1.0\Qlik.Engine.dll"
add-type -path ".\bin\QlikSenseSDK\16.1.0\Qlik.Sense.JsonRpc.dll"
add-type -path ".\bin\QlikSenseSDK\16.1.0\Qlik.Sense.Client.dll"

# Set the Engine URL 
$Location = [Qlik.Engine.Location]::FromUri($QSEURI)
$Location.AsNtlmUserViaProxy()

#Get the Engine AppIdentifier using the App ID
$QEAppIdentifier = [Qlik.Engine.LocationExtensions]::AppWithId($Location,$AppID)

#Get the Engine App
$QEApp = [Qlik.Engine.LocationExtensions]::App($Location, $QEAppIdentifier)

#Call the GetLineage method
$QEApp.GetLineage()

$QEApp.Dispose()
$Location.Dispose()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example 2 Full:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$AppID = 'ef47c8d8-9049-4ce9-880e-0289422f82c1'
$QSECMHost = "$($env:COMPUTERNAME)"

if ($null -eq $(Get-Module -Name QlikSenseCLI -ListAvailable)){
    Install-Module -Name QlikSenseCLI -Scope CurrentUser -Force
}
Import-Module QlikSenseCLI

Connect-QlikSense -Hostname $QSECMHost -TrustAllCertificates

#Get the Apps Lineage data
$JSONAppLineage = Invoke-QSGet "https://$($QSECMHost)/api/v1/apps/$($AppID)/data/Lineage" -Raw
$AppLineage = $JSONAppLineage |ConvertFrom-Json

$AppLineage
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 01:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2042819#M18185</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-02-28T01:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: GETLineage API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2043749#M18198</link>
      <description>&lt;P&gt;Great... Thanks for the great examples&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29458"&gt;@Marc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 11:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2043749#M18198</guid>
      <dc:creator>PhillG</dc:creator>
      <dc:date>2023-03-01T11:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: GETLineage API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2043997#M18204</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29458"&gt;@Marc&lt;/a&gt;&amp;nbsp;I'm finding the results a bit hit and miss, and not as expected.&lt;/P&gt;
&lt;P&gt;Some apps are returning null or only a sub section of the actual loads/stores... Is there a particular pattern this method does not support?&lt;/P&gt;
&lt;P&gt;The documentation doesn't seem to indicate any limitations.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 16:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2043997#M18204</guid>
      <dc:creator>PhillG</dc:creator>
      <dc:date>2023-03-01T16:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: GETLineage API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2044141#M18206</link>
      <description>&lt;P&gt;generally you will need to have reloaded the app since the feature was included as&amp;nbsp;the metadata &amp;amp; lineage is recorded as part of the reload process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 21:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2044141#M18206</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-03-01T21:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: GETLineage API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2044363#M18216</link>
      <description>&lt;P&gt;Thanks Marc... unfortunately the method doesn't appear to produce consistent outputs.&lt;/P&gt;
&lt;P&gt;Whilst a neater and more efficient method, Comparing to the reload script output it doesn't appear to be complete/reliable, unless I'm missing something&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 10:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GETLineage-API/m-p/2044363#M18216</guid>
      <dc:creator>PhillG</dc:creator>
      <dc:date>2023-03-02T10:38:08Z</dc:date>
    </item>
  </channel>
</rss>

