<?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: SalesForce : Attach pdf with component tSalesForceOutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278153#M53710</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;, ContentVersion is not the same as Attachment&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 12:40:18 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-11-27T12:40:18Z</dc:date>
    <item>
      <title>SalesForce : Attach pdf with component tSalesForceOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278150#M53707</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to attach pdf file into SalesForce.&lt;/P&gt; 
&lt;P&gt;I use the&amp;nbsp;tSalesForceOutput with module Name : ContentVersion&lt;/P&gt; 
&lt;P&gt;I put the fields :&amp;nbsp;TITLE /&amp;nbsp;DESCRIPTION /&amp;nbsp;PathOnClient /&amp;nbsp;VersionData (as with DataLoader SF).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My job is running successfully but my pdf file in SalesForce is empty.&lt;/P&gt; 
&lt;P&gt;My job in attachment.&lt;/P&gt; 
&lt;P&gt;I'm in Talend 7.0.1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea?&lt;/P&gt; 
&lt;P&gt;Jérémy&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278150#M53707</guid>
      <dc:creator>jblot</dc:creator>
      <dc:date>2024-11-16T07:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce : Attach pdf with component tSalesForceOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278151#M53708</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eWe2AAE"&gt;@jblot&lt;/A&gt;,check the below link for the example.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://corycowgill.blogspot.com/2013/06/inserting-pdf-attachments-into.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://corycowgill.blogspot.com/2013/06/inserting-pdf-attachments-into.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 12:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278151#M53708</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-27T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce : Attach pdf with component tSalesForceOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278152#M53709</link>
      <description>&lt;P&gt;At least, the document must be Base64 converted to populate the VersionData field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 12:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278152#M53709</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-11-27T12:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce : Attach pdf with component tSalesForceOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278153#M53710</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;, ContentVersion is not the same as Attachment&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 12:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278153#M53710</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-11-27T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce : Attach pdf with component tSalesForceOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278154#M53711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your response.&lt;/P&gt; 
&lt;P&gt;I try to convert my field but I have the same problem : my pdf is empty in SalesForce.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my tMap :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 608px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1AZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144284i8BC109A9343E1F86/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1AZ.png" alt="0683p000009M1AZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I attach my job&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtmW"&gt;AG_EXPORT_MONTHLY_REPORT.zip&lt;/A&gt;</description>
      <pubDate>Tue, 27 Nov 2018 17:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278154#M53711</guid>
      <dc:creator>jblot</dc:creator>
      <dc:date>2018-11-27T17:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce : Attach pdf with component tSalesForceOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278155#M53712</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, I resolve my problem with this code :&lt;/P&gt;
&lt;P&gt;File file = new File((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"));&lt;/P&gt;
&lt;P&gt;try {&lt;/P&gt;
&lt;P&gt;FileInputStream documentInFile = new FileInputStream(file);&lt;BR /&gt;byte[] documentData = new byte[(int)file.length()];&lt;BR /&gt;documentInFile.read(documentData);&lt;BR /&gt;output_row.Body = new String(Base64.encodeBase64(documentData));&lt;BR /&gt;&lt;BR /&gt;} catch (FileNotFoundException e) {&lt;BR /&gt;output_row.conversionCode = "FILE_NOT_FOUND";&lt;BR /&gt;output_row.conversionMessage = "File not found "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH");&lt;BR /&gt;System.out.println("*** File not found "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH")+"\n"+e);&lt;BR /&gt;} catch (IOException ioe) {&lt;BR /&gt;output_row.conversionCode = "CONVERSION_ERROR";&lt;BR /&gt;output_row.conversionMessage = "Error converting file "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH");&lt;BR /&gt;System.out.println("*** Error converting file "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH")+"\n"+ioe);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I put this result in field&amp;nbsp;VersionData on the&amp;nbsp;ContentVersion module name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jérémy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 14:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Attach-pdf-with-component-tSalesForceOutput/m-p/2278155#M53712</guid>
      <dc:creator>jblot</dc:creator>
      <dc:date>2018-11-29T14:00:03Z</dc:date>
    </item>
  </channel>
</rss>

