<?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: How to search Salesforce records in bulk from a CSV file? in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-search-salesforce-records-in-bulk-from-a-csv-file/m-p/12375#M4739</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/13246"&gt;@shaked&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Yes, there is an approach to achieve this without iterating through every CSV row and performing an individual Salesforce search.&lt;/P&gt;&lt;P&gt;You can accomplish this in just a few steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Read your existing CSV file.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use the Salesforce action &lt;STRONG&gt;"Search Records in bulk using SOQL query (API 1.0)"&lt;/STRONG&gt; to retrieve the existing records from the Salesforce object. The output will be in CSV format.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use &lt;STRONG&gt;SQL Transformations by Workato&lt;/STRONG&gt; to compare the CSV data with the Salesforce data. Add both datasets as sources, write the required SQL query (for example Email_ID), and identify matching or non-matching records in a single operation.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This approach avoids executing a separate Salesforce search for every CSV record. Instead, you can retrieve the Salesforce data at once and perform the comparison using SQL, which is much more efficient for large datasets.&lt;/P&gt;&lt;P&gt;The final output can be returned as CSV file contents or written directly to File Storage, depending on your requirements.&lt;/P&gt;&lt;P&gt;I hope this helps. Please refer to the attached screenshots for the workflow configuration.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-12 151329.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2738i190FDE23A6B8D4FC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-12 151329.png" alt="Screenshot 2026-07-12 151329.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-12 152919.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2737i708328F3EE848E77/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-12 152919.png" alt="Screenshot 2026-07-12 152919.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-12 153029.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2736iF65D76EB29FCA10A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-12 153029.png" alt="Screenshot 2026-07-12 153029.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;J Rajesh Kumar.&lt;/DIV&gt;</description>
    <pubDate>Sun, 12 Jul 2026 10:06:26 GMT</pubDate>
    <dc:creator>rajeshjanapati</dc:creator>
    <dc:date>2026-07-12T10:06:26Z</dc:date>
    <item>
      <title>How to search Salesforce records in bulk from a CSV file?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-search-salesforce-records-in-bulk-from-a-csv-file/m-p/12371#M4738</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am reading records from a CSV file and I need to check whether each record already exists in Salesforce.&lt;/P&gt;&lt;P&gt;For each row in the CSV, I need to search a Salesforce object (for example, Contact) by a unique field such as Employee ID and retrieve the matching record.&lt;/P&gt;&lt;P&gt;Is there a way to perform this lookup for all CSV records in a single step using a bulk operation or any other approach?&lt;/P&gt;&lt;P&gt;Or do I have to iterate through each CSV row and execute a separate Salesforce search for each record?&lt;/P&gt;&lt;P&gt;The CSV may contain a large number of records, so I would like to avoid processing them one by one if possible.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2026 05:01:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-search-salesforce-records-in-bulk-from-a-csv-file/m-p/12371#M4738</guid>
      <dc:creator>shaked</dc:creator>
      <dc:date>2026-07-12T05:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to search Salesforce records in bulk from a CSV file?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-search-salesforce-records-in-bulk-from-a-csv-file/m-p/12375#M4739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/13246"&gt;@shaked&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Yes, there is an approach to achieve this without iterating through every CSV row and performing an individual Salesforce search.&lt;/P&gt;&lt;P&gt;You can accomplish this in just a few steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Read your existing CSV file.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use the Salesforce action &lt;STRONG&gt;"Search Records in bulk using SOQL query (API 1.0)"&lt;/STRONG&gt; to retrieve the existing records from the Salesforce object. The output will be in CSV format.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use &lt;STRONG&gt;SQL Transformations by Workato&lt;/STRONG&gt; to compare the CSV data with the Salesforce data. Add both datasets as sources, write the required SQL query (for example Email_ID), and identify matching or non-matching records in a single operation.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This approach avoids executing a separate Salesforce search for every CSV record. Instead, you can retrieve the Salesforce data at once and perform the comparison using SQL, which is much more efficient for large datasets.&lt;/P&gt;&lt;P&gt;The final output can be returned as CSV file contents or written directly to File Storage, depending on your requirements.&lt;/P&gt;&lt;P&gt;I hope this helps. Please refer to the attached screenshots for the workflow configuration.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-12 151329.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2738i190FDE23A6B8D4FC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-12 151329.png" alt="Screenshot 2026-07-12 151329.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-12 152919.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2737i708328F3EE848E77/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-12 152919.png" alt="Screenshot 2026-07-12 152919.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-12 153029.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2736iF65D76EB29FCA10A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-12 153029.png" alt="Screenshot 2026-07-12 153029.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;J Rajesh Kumar.&lt;/DIV&gt;</description>
      <pubDate>Sun, 12 Jul 2026 10:06:26 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-search-salesforce-records-in-bulk-from-a-csv-file/m-p/12375#M4739</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2026-07-12T10:06:26Z</dc:date>
    </item>
  </channel>
</rss>

