title: How to reference a string parm in a sheet = smartsheet.sheets.get(print("%s", SHEET_ID)) call?
body: <p>I need to pass a variable to my Smartsheet API so that I can run it to write to different Smartsheets.  Right now, when hard code a string (with quotes) &quot;My Smartsheet&quot;, the script runs great and my Smartsheet is updated.</p>
  <pre><code>sheet = smartsheet.sheets.get(&quot;My Smartsheet&quot;)
  </code></pre>
  <p>However, when I use a variable named, <code>smartfi</code> I get an error.</p>
  <p><strong>Running script:</strong></p>
  <pre class="lang-none prettyprint-override"><code>pi@cenicapi:~/Documents/tscripts/usage $ ./usage_add.py /home/pi/Documents/usgwrk/CCC-1494.xlsx &quot;My Smartsheet&quot;
  
  *Traceback (most recent call last):
  
    File &quot;./usage_add.py&quot;, line 45, in &lt;module&gt;
  
      sheet = smartsheet.sheets.get(smartfi)
  
    File &quot;/home/pi/.local/lib/python3.7/site-packages/simple_smartsheet/crud/base.py&quot;, line 148, in get
      id_ = self.get_id(name)
  
    File &quot;/home/pi/.local/lib/python3.7/site-packages/simple_smartsheet/crud/base.py&quot;, line 125, in get_id
      return self._get_id(name, objects)
  
    File &quot;/home/pi/.local/lib/python3.7/site-packages/simple_smartsheet/crud/base.py&quot;, line 91, in _get_id
      f&quot;{self.factory.__qualname__} object with the name {name!r} &quot;
  
  simple_smartsheet.exceptions.SmartsheetObjectNotFound: Sheet object with the name 'CCC-2052' has not been found
  
  pi@cenicapi:~/Documents/tscripts/usage $*
  </code></pre>
  <p>How do I pass a variable to the <code>sheet = smartsheet.sheets.get(&quot;My Smartsheet&quot;)</code> so it runs without errors and and my Smartsheet named <code>&quot;My Smartsheet&quot;</code> is updated on the web?</p>
  <p>Copy/paste of script below for reference:</p>
  <pre><code>import logging
  import csv
  import os
  import sys
  import pandas as pd
  from datetime import date
  
  excelfi=sys.argv[1]
  smartfi=sys.argv[2]
  
  logging.basicConfig(filename='rwsheet.log', level=logging.INFO)
  
  from simple_smartsheet import Smartsheet
  from simple_smartsheet.models import Sheet, Column, Row, Cell, ColumnType
  
  data = pd.read_excel(excelfi,header = 0 )
  df = pd.DataFrame(data)
  
  cricket_elements = df.values.tolist()
  
  TOKEN = os.getenv(&quot;SMARTSHEET_ACCESS_TOKEN&quot;)
  
  SHEET_ID = smartfi
  smartsheet = Smartsheet(TOKEN)
  
  sheet = smartsheet.sheets.get(smartfi)
  print(&quot;Smartsheet: &quot;, sheet)
  
  new_rows = []
  for element in cricket_elements:
  
      row = Row(to_bottom=True,
          cells=[
               sheet.make_cell(&quot;ccc_key_id&quot;, element[11]),
               sheet.make_cell(&quot;CCD&quot;, element[3]),
               sheet.make_cell(&quot;Max_In_Only&quot;, element[7]),
               sheet.make_cell(&quot;Max_Out_Only&quot;, element[10]),
               sheet.make_cell(&quot;avg_in_out_max&quot;, element[4]),
               sheet.make_cell(&quot;MyDate&quot;, element[1])
          ])
      new_rows.append(row)
  
  smartsheet.sheets.add_rows(sheet.id, new_rows)
  </code></pre>