title: Cannot Set Boolean Field in new Netsuite Record
body: <p>I am trying to use the Netsuite PHP Toolkit to create a new task, assign it to an employee and have an email sent to that employee.</p>
  
  <p>I can successfully create and assign the task, but can't get the email to send.</p>
  
  <p>Here is the code I'm using:</p>
  
  <pre><code>    $task_data = array(
          'title'=&gt;$request['subject'],
          'assigned'=&gt;new nsRecordRef(array('internalId'=&gt;NETSTUITE_CONF::EMPLOYEE_ID, 'type'=&gt;'employee')),
          'message'=&gt;$request['body'],
          'sendEmail'=&gt;true,
          'startDate'=&gt;date('c', strtotime($request['date_added']))
      );
      $task = new nsComplexObject('Task', $task_data);
      $ret = $ns-&gt;add($task);
      var_dump($ret);
  </code></pre>
  
  <p>Which outputs:</p>
  
  <pre><code>object(nsWriteResponse)#13 (3) {
    ["isSuccess"]=&gt;
    bool(true)
    ["statusDetail"]=&gt;
    NULL
    ["recordRef"]=&gt;
    object(nsRecordRef)#19 (4) {
      ["nsComplexObject_type"]=&gt;
      string(9) "RecordRef"
      ["nsComplexObject_namespace"]=&gt;
      string(49) "urn:core_2010_1.platform.webservices.netsuite.com"
      ["nsComplexObject_fields"]=&gt;
      array(2) {
        ["type"]=&gt;
        string(4) "task"
        ["internalId"]=&gt;
        string(6) "408557"
      }
      ["nsComplexObject_namespaces"]=&gt;
      NULL
    }
  }
  </code></pre>
  
  <p>The new task has all the data set except the <code>sendEmail</code> field, which the SuiteTalk Schema Browser list the type as <code>xsd:boolean</code>.  I have tried sending the strings "true" and "T" as well, but the field remains false.</p>
  
  <p>How can I set the field to <code>true</code>, so that the email is sent?</p>