title: Reading data from CSV file and insert into Salesforce
body: <p>I am trying to read data from a csv file and insert/upsert (depending on existent of UniqueId) into Salesforce using Python.</p>
  
  <p>I know I have to use iterator to read data from a cvs file, put them into List, but I am not sure how to fetch the data from that List and put (insert or upsert) data in Salesforce.</p>
  
  <p>Each csv file contains two fields (UniqueId, Selection).</p>
  
  <p>Do I use <code>enumerate</code>?</p>
  
  <p>Here is what I have so far (where action taking place):</p>
  
  <p>How do I fetch the data into Salesforce?</p>
  
  <pre><code>InFiles = glob.glob(inputFolderName + '/SurveySelection*.csv')
  
  InFileslist = []       ##List to put file name
  for InFile in InFiles:
      thenStamp = os.path.getmtime(InFile)
  
      if (thenStamp &gt;= unix_time(dt1)) and (thenStamp &gt;= unix_time(dt2)):
         InFileslist.append(InFile)  ## Expression to append files in certain time range
  
  for filename in InFileslist:
      file = open(filename, 'r')
      lines = file.readlines()
  </code></pre>