<?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: Restrict LOAD to IDs in Resident Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430346#M34331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is ID field here? Why is that field invalid?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2017 12:34:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-12T12:34:25Z</dc:date>
    <item>
      <title>Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430331#M34316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Qlik Sense app, I am FIRST loading a list campaign members from one campaign in salesforce. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load ONLY lead/contact information from people who are a part of that campaign. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would imagine the syntax to be something like below, but I know this is not correct: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;@1,&lt;/P&gt;&lt;P&gt;@2,&lt;/P&gt;&lt;P&gt;@3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM Lead&lt;/P&gt;&lt;P&gt;WHERE Id IN (SELECT DISTINCT Id FROM ResidentTable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430331#M34316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T18:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430332#M34317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you looking to restrict them directly in your SQL? may be save the list of IDs in a variable separated by comma and then use that in your where clause the way you just used above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430332#M34317</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T18:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430333#M34318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking to restrict them any way I can. I do not know how to save the IDs in a variable separated by commas. Is there an article you can link me to? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430333#M34318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T18:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430334#M34319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Concat(DISTINCT Chr(39) &amp;amp; ID &amp;amp; Chr(39), ',') as List;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;campaign in salesforce;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;LET vList = Peek('List');&lt;/STRONG&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;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;@1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;@2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;@3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;SELECT * FROM Lead&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE Id IN ('$(vList)')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430334#M34319</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T18:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430335#M34320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried below but it is not working. The Below is only creating one row so maybe I am misunderstanding something ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Concat(DISTINCT Chr(39) &amp;amp; IF(IsNull(ContactId), LeadId, ContactId) &amp;amp; Chr(39), ',') as List;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM CampaignMember&lt;/P&gt;&lt;P&gt;WHERE CampaignId = '7011O0000021IGvQAM';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vList = Peek('List');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430335#M34320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T19:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430336#M34321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will contain only one row, but will concat all your Ids to check into a comma separate list which can then be supplied into your SQL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430336#M34321</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T19:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430337#M34322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then something is going wrong in the second part, I will have to trouble shoot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430337#M34322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T19:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430338#M34323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you add TRACE to make sure the variable looks good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;List:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Concat(DISTINCT Chr(39) &amp;amp; IF(IsNull(ContactId), LeadId, ContactId) &amp;amp; Chr(39), ',') as List;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM CampaignMember&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE CampaignId = '7011O0000021IGvQAM';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vList = Peek('List');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;TRACE $(vList);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430338#M34323</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T19:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430339#M34324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it looks like the variables and not being created ... I am going to use trace and revert the findings&lt;/P&gt;&lt;P&gt;thank you sir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430339#M34324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T20:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430340#M34325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what TRACE is meant to do but the script did not work. I can tell the values are being created correctly by the load statement because I can see the List field in a table box after load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think the variables are being created. Below is the total script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ListLead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Concat(DISTINCT Chr(39) &amp;amp; LeadId &amp;amp; Chr(39), ',') as ListLead,&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM CampaignMember&lt;/P&gt;&lt;P&gt;WHERE CampaignId = '7011O0000021IGvQAM';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vListLead = Peek('ListLead');&lt;/P&gt;&lt;P&gt;TRACE $(vListLead);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ListContact:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Concat(DISTINCT Chr(39) &amp;amp; ContactId &amp;amp; Chr(39), ',') as ListContact,&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM CampaignMember&lt;/P&gt;&lt;P&gt;WHERE CampaignId = '7011O0000021IGvQAM';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vListContact = Peek('ListContact');&lt;/P&gt;&lt;P&gt;TRACE $(vListContact);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430340#M34325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T20:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430341#M34326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured it out. I had to qualify the field in the PEEK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET vListContact = Peek('ListContact.&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ListContact');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430341#M34326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T20:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430342#M34327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, is it working now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430342#M34327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T20:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430343#M34328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet. Some the values stored in the variable is throwing an error. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 21:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430343#M34328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T21:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430344#M34329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh really? What error message do you get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 21:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430344#M34329</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T21:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430345#M34330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;INVALID_QUERY_FILTER_OPERATOR: LID__LinkedIn_Member_Token__c FROM Lead WHERE Id IN ('\'\',\'00Q1400001QVqbXEAT\' ^ ERROR at Row:1:Column:7304 invalid ID field: &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430345#M34330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430346#M34331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is ID field here? Why is that field invalid?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430346#M34331</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-12T12:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430347#M34332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just understanding simple SQL ... it might be an issue where the last ',' in the IN statement is possibly causing and issue, but I am not sure. If there are suggestions in how I can zoom in to the exact place of error that would be great. I might be able to figure it out myself if I can drill deeper ... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430347#M34332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430348#M34333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you seeing the last ','? Just look at the error message doesn't really show me the complete picture... may be share your script up until where you run this SQL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430348#M34333</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-12T12:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430349#M34334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;When we create the variables below&amp;nbsp; we CONCAT ',' to every Id ... But for the IN statement to work the last ID must NOT have a ','&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i.e WHERE Id IN ('1','2','3')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ListLead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Concat(DISTINCT Chr(39) &amp;amp; LeadId &amp;amp; Chr(39), ',') as ListLead,&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM CampaignMember&lt;/P&gt;&lt;P&gt;WHERE CampaignId = '7011O0000021IGvQAM';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vListLead = Peek('ListLead.ListLead');&lt;/P&gt;&lt;P&gt;TRACE $(vListLead);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ListContact:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Concat(DISTINCT Chr(39) &amp;amp; ContactId &amp;amp; Chr(39), ',') as ListContact,&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM CampaignMember&lt;/P&gt;&lt;P&gt;WHERE CampaignId = '7011O0000021IGvQAM';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vListContact = Peek('ListContact.ListContact');&lt;/P&gt;&lt;P&gt;TRACE $(vListContact);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is where I want to use the variable to only select IDs identified in a specific campaign:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Who:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Id as WhoId, &lt;/P&gt;&lt;P&gt;Id as WhoId2,&lt;/P&gt;&lt;P&gt;Title as WhoTitle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Email as WhoEmail,&lt;/P&gt;&lt;P&gt;LeanData__Reporting_Matched_Account__c as AccountId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM Lead&lt;/P&gt;&lt;P&gt;WHERE Id IN&lt;/P&gt;&lt;P&gt;('$(vListLead)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Who)Add&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;/P&gt;&lt;P&gt;LOAD Id as WhoId, &lt;/P&gt;&lt;P&gt;Id as WhoId2,&lt;/P&gt;&lt;P&gt;AccountId, &lt;/P&gt;&lt;P&gt;Title as WhoTitle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Email as WhoEmail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM Contact&lt;/P&gt;&lt;P&gt;WHERE Id IN&lt;/P&gt;&lt;P&gt;('$(vListContact)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430349#M34334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T12:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict LOAD to IDs in Resident Table</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430350#M34335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something is wrong with the way ID is being concatenated .. Below is an excerpt of how the IDs look in the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="padding: 0 0.1px 0 0;"&gt;&lt;SPAN class="cm-keyword" style="color: #6a8fde; font-weight: bold;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="cm-operator"&gt;*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="CodeMirror-line" style="padding: 0 4px; background-position: initial; font-family: inherit; font-size: 13px; color: #000000;"&gt;&lt;SPAN style="padding: 0 0.1px 0 0;"&gt;&lt;SPAN class="cm-normalText"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="cm-normalText"&gt;Lead&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="CodeMirror-line" style="padding: 0 4px; background-position: initial; font-family: inherit; font-size: 13px; color: #000000;"&gt;&lt;SPAN style="padding: 0 0.1px 0 0;"&gt;&lt;SPAN class="cm-normalText"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="cm-normalText"&gt;Id&lt;/SPAN&gt; &lt;SPAN class="cm-normalText"&gt;IN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="CodeMirror-line" style="padding: 0 4px; background-position: initial; font-family: inherit; font-size: 13px; color: #000000;"&gt;&lt;SPAN style="padding: 0 0.1px 0 0;"&gt;&lt;SPAN class="cm-operator"&gt;(&lt;/SPAN&gt;&lt;SPAN class="cm-string" style="color: #44751d;"&gt;'''''&lt;/SPAN&gt;&lt;SPAN class="cm-operator"&gt;,&lt;/SPAN&gt;&lt;SPAN class="cm-string" style="color: #44751d;"&gt;''&lt;/SPAN&gt;&lt;SPAN class="cm-normalText"&gt;00Q1400001QVqbXEAT''&lt;/SPAN&gt;&lt;SPAN class="cm-operator"&gt;,&lt;/SPAN&gt;&lt;SPAN class="cm-string" style="color: #44751d;"&gt;''&lt;/SPAN&gt;&lt;SPAN class="cm-normalText"&gt;00Q1400001SItOSEA1''&lt;/SPAN&gt;&lt;SPAN class="cm-operator"&gt;,&lt;/SPAN&gt;&lt;SPAN class="cm-string" style="color: #44751d;"&gt;''&lt;/SPAN&gt;&lt;SPAN class="cm-normalText"&gt;00Q1400001SJYKkEAP''&lt;/SPAN&gt;&lt;SPAN class="cm-operator"&gt;,&lt;/SPAN&gt;&lt;SPAN class="cm-string" style="color: #44751d;"&gt;''&lt;/SPAN&gt;&lt;SPAN class="cm-normalText"&gt;00Q1400001XQSBZEA5''&lt;/SPAN&gt;&lt;SPAN class="cm-operator"&gt;,&lt;/SPAN&gt;&lt;SPAN class="cm-string" style="color: #44751d;"&gt;''&lt;/SPAN&gt;&lt;SPAN class="cm-normalText"&gt;00Q1400001XQSBbEAP''&lt;/SPAN&gt;&lt;SPAN class="cm-operator"&gt;,&lt;/SPAN&gt;&lt;SPAN class="cm-string" style="color: #44751d;"&gt;''&lt;/SPAN&gt;&lt;SPAN class="cm-normalText"&gt;00Q1400001XQSBeEAP&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 13:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-LOAD-to-IDs-in-Resident-Table/m-p/1430350#M34335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T13:06:39Z</dc:date>
    </item>
  </channel>
</rss>

