<?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: Loading attachments from multiple emails via QVSource in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858552#M300693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all - I think you may have pasted some sensitive info into the above so I would recommend deleting/editing it immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, it's not clear what errors or issues you are having with the above, is it running successfully up to a point? Are you seeing errors in either the QlikView or QVSource logs you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 07:17:26 GMT</pubDate>
    <dc:creator>chrisbrain</dc:creator>
    <dc:date>2015-06-19T07:17:26Z</dc:date>
    <item>
      <title>Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858551#M300692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to load attachments from multiple emails from an email's Inbox. The attachments are always in this format eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name_of_file_15062015.csv or Name_of_file_08062015.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to achieve is to load all the attachments that have not yet been loaded. I thought I could use a For-Next function...but so far no luck. Could you please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 22:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858551#M300692</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2015-06-18T22:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858552#M300693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all - I think you may have pasted some sensitive info into the above so I would recommend deleting/editing it immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, it's not clear what errors or issues you are having with the above, is it running successfully up to a point? Are you seeing errors in either the QlikView or QVSource logs you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 07:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858552#M300693</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2015-06-19T07:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858553#M300694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not see any sensitive information being passed, but I have deleted the script anyway. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is: My script is supposed to get all the *.csv files from the email, but instead it get only the attachment that is specified in the FROM statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is to create a procedure that would extract all *.csv file that have always the same format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name_of_file_ and a date, e.g. Name_of_file_15062015, Name_of_file_22062015&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 07:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858553#M300694</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2015-06-19T07:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858554#M300695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you put the script back but carefully check for any username and password parameters in the URL (I am pretty sure they were there before so I would also just recommend you change your password) so I can see?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively email &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:support@qvsource.com"&gt;support@qvsource.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 07:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858554#M300695</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2015-06-19T07:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858555#M300696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have actually amended the usernames and passwords in the original post. But very nice of you to be cautious about the security. Thanks again &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MessagesInFolder:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; id, &lt;/P&gt;&lt;P&gt;&amp;nbsp; UID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; inReplyTo,&lt;/P&gt;&lt;P&gt;&amp;nbsp; folder,&lt;/P&gt;&lt;P&gt;&amp;nbsp; to,&lt;/P&gt;&lt;P&gt;&amp;nbsp; cc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; bcc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; from,&lt;/P&gt;&lt;P&gt;&amp;nbsp; subject,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sent,&lt;/P&gt;&lt;P&gt;&amp;nbsp; text,&lt;/P&gt;&lt;P&gt;&amp;nbsp; html,&lt;/P&gt;&lt;P&gt;&amp;nbsp; size,&lt;/P&gt;&lt;P&gt;&amp;nbsp; attachments,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gmailMessageId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gmailThreadId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gmailLabels&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:/QVSource/MailBoxConnector/?table=ImapMessagesInFolder&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=" rel="nofollow"&gt;http://localhost:/QVSource/MailBoxConnector/?table=ImapMessagesInFolder&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx) where attachments&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let noRows = NoOfRows('MessagesInFolder');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to $(noRows)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vFolder ='Inbox';&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vMessageID = peek ('UID',$(i),'MessagesInFolder');&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vID = peek('id',$(i),'MessagesInFolder');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Attachments:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vID)' as id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vMessageID)' as UID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vFolder)' as Folder&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=Folder=Inbox&amp;amp;MessageID=$(vMessageId)&amp;amp;AttachmentFileName=Name_of_file_15062015.csv&amp;amp;TargetPath=location:Name_of_file_15062015.csv" rel="nofollow"&gt;http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=Folder=Inbox&amp;amp;MessageID=$(vMessageId)&amp;amp;AttachmentFileName=Name_of_file_15062015.csv&amp;amp;TargetPath=location:Name_of_file_15062015.csv&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET noRows = NoOfRows('Attachments');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;for i=0 to $(noRows)-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFolder = 'Inbox';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vMessageID = peek('UID', $(i), 'Attachments');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFilename = peek('AttachmentFileName', $(i), 'Attachments');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MailBoxConnector_ImapMessageDownloadAttachment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Status as ImapMessageDownloadAttachment_Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vFilename)' as ImapMessageDownloadAttachment_Filename&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=Folder=Inbox&amp;amp;MessageID=$(vMessageId)&amp;amp;AttachmentFileName=Name_of_file_15062015.csv&amp;amp;TargetPath=location:Name_of_file_15062015.csv" rel="nofollow"&gt;http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=Folder=Inbox&amp;amp;MessageID=$(vMessageId)&amp;amp;AttachmentFileName=Name_of_file_15062015.csv&amp;amp;TargetPath=location:Name_of_file_15062015.csv&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 08:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858555#M300696</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2015-06-19T08:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858556#M300697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick look at your script suggests you are never using your last &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vFilename variable in the last for loop but rather have always hard coded the same filename which I think would explain your issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 16:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858556#M300697</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2015-06-19T16:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858557#M300698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even when I use the vFileName in the script, this does not actually extracts all the files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used it like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=Folder=Inbox&amp;amp;MessageID=$(vMessageId)&amp;amp;AttachmentFileName=$(vFileName)&amp;amp;TargetPath=location:$(vFileName" rel="nofollow"&gt;http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=Folder=Inbox&amp;amp;MessageID=$(vMessageId)&amp;amp;AttachmentFileName=$(vFileName)&amp;amp;TargetPath=location:$(vFileName&lt;/A&gt;&lt;SPAN&gt;)]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858557#M300698</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2015-06-23T10:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858558#M300699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌when you say it doesnt extract all the files, what do you mean? Are some/more being extracted now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, what is the location: in your above script doing? I can't quite understand that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 18:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858558#M300699</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2015-06-23T18:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858559#M300700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;As I mentioned in my original post I need to extract attachments from emails from different people that email me let's say to my email address &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:x@email.com"&gt;x@email.com&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I can get an email from &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:y@email.com"&gt;y@email.com&lt;/A&gt;&lt;SPAN&gt; with attachment &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN&gt;Name_of_file_15062015.csv, next email will be from &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:w@email.com"&gt;w@email.com&lt;/A&gt;&lt;SPAN&gt; with attachment &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN&gt;Name_of_file_22062015.csv, next email from &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:s@email.com"&gt;s@email.com&lt;/A&gt;&lt;SPAN&gt; with attachment &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Name_of_file_29062015.csv and so on. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to achieve is to extract all of these attachments and save them on my local PC. I have build For..Next loop. &lt;SPAN style="font-size: 13.3333330154419px;"&gt;I can now see that it loops through all the attachments, however it does not recognise the FileName. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG alt="Email.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90551_Email.PNG" style="height: 206px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG alt="Capture22.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/90552_Capture22.PNG" style="height: 207px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Script I use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MessagesInFolder:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; id, &lt;/P&gt;&lt;P&gt;&amp;nbsp; UID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; inReplyTo,&lt;/P&gt;&lt;P&gt;&amp;nbsp; folder,&lt;/P&gt;&lt;P&gt;&amp;nbsp; to,&lt;/P&gt;&lt;P&gt;&amp;nbsp; cc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; bcc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; from,&lt;/P&gt;&lt;P&gt;&amp;nbsp; subject,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sent,&lt;/P&gt;&lt;P&gt;&amp;nbsp; text,&lt;/P&gt;&lt;P&gt;&amp;nbsp; html,&lt;/P&gt;&lt;P&gt;&amp;nbsp; size,&lt;/P&gt;&lt;P&gt;&amp;nbsp; attachments,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gmailMessageId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gmailThreadId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gmailLabels&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:/QVSource/MailBoxConnector/?table=ImapMessagesInFolder&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=" rel="nofollow"&gt;http://localhost:/QVSource/MailBoxConnector/?table=ImapMessagesInFolder&amp;amp;appID=&amp;amp;Server=outlook.office365.com&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx) where attachments&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Let noRows = NoOfRows('MessagesInFolder');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for i=0 to $(noRows)-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vFolder ='Inbox';&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vServer ='outlook.office365.com';&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vMessageID = peek ('UID',$(i),'MessagesInFolder');&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vID = peek('id',$(i),'MessagesInFolder');&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vFileName&amp;nbsp; = peek('FileName', $(i), 'Attachments');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Attachments:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vID)'&amp;nbsp; as id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vMessageID)'&amp;nbsp; as UID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vFolder)'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Folder,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FileName&amp;nbsp; as AttachmentFileName&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=$(vServer)&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=&amp;amp;Folder=$(vFolder)&amp;amp;MessageID=$(vMessageID)&amp;amp;AttachmentFileName=$(vFilename" rel="nofollow"&gt;http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=$(vServer)&amp;amp;Port=&amp;amp;SSL=true&amp;amp;Username=&amp;amp;Password=&amp;amp;Folder=$(vFolder)&amp;amp;MessageID=$(vMessageID)&amp;amp;AttachmentFileName=$(vFilename&lt;/A&gt;&lt;SPAN&gt;)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET noRows = NoOfRows('Attachments');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;for i=0 to $(noRows)-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFolder&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'Inbox';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vMessageID = peek('UID', $(i), 'MessagesInFolder');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFilename&amp;nbsp; = peek('AttachmentFileName', $(i), 'Attachments');&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MailBoxConnector_ImapMessageDownloadAttachment:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Status as ImapMessageDownloadAttachment_Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vFilename)' as ImapMessageDownloadAttachment_Filename&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=$(vServer)&amp;amp;Port=&amp;amp;SSL=&amp;amp;Username=&amp;amp;Password=&amp;amp;Folder=$(vFolder)&amp;amp;MessageID=$(vMessageID)&amp;amp;AttachmentFileName=$(vFilename)&amp;amp;TargetPath=C%3a%5cQlikView%5c$(vFilename" rel="nofollow"&gt;http://localhost:/QVSource/MailBoxConnector/?table=ImapMessageDownloadAttachment&amp;amp;appID=&amp;amp;Server=$(vServer)&amp;amp;Port=&amp;amp;SSL=&amp;amp;Username=&amp;amp;Password=&amp;amp;Folder=$(vFolder)&amp;amp;MessageID=$(vMessageID)&amp;amp;AttachmentFileName=$(vFilename)&amp;amp;TargetPath=C%3a%5cQlikView%5c$(vFilename&lt;/A&gt;&lt;SPAN&gt;)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx);&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*RE Location: I know there should be actually in Target Path C:\QlikView&amp;nbsp; instead of the location, and I have it in my script.&amp;nbsp; as follow: TargetPath=C%3a%5cQlikView%5c$v(Filename). So please ignore the location bit. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 09:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858559#M300700</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2015-06-24T09:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858560#M300701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there were quite a few issues with the above script - I have written one for you which should hopefully works - please read the comments for clarification of a couple of things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/chrisbrain/c29609471b7dcdb9d415" title="https://gist.github.com/chrisbrain/c29609471b7dcdb9d415"&gt;QlikView/Qlik Sense Script to download email attachments using QVSource MailBox Connector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And let me know if it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2015 12:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858560#M300701</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2015-06-28T12:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858561#M300702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works as expected Chris. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858561#M300702</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2015-06-29T15:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading attachments from multiple emails via QVSource</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858562#M300703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 16:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-attachments-from-multiple-emails-via-QVSource/m-p/858562#M300703</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2015-06-29T16:51:54Z</dc:date>
    </item>
  </channel>
</rss>

