title: How to insert a row into the Accounts table via the Sugar API
body: <p>This is code I have tried:</p>
  
  <pre><code>$result = $sugar['soapclient']-&gt;call(
      'set_entry',
      array(
          'session'=&gt;$sugar['session'],
          'module_name'=&gt;'Accounts',
          array(
              array("name" =&gt; 'id', "value" =&gt; $sugar_data['id']),
              array("name" =&gt; 'name', "value" =&gt; $sugar_data['name']),
              array("name" =&gt; 'description', "value" =&gt; $sugar_data['description']),
              array("name" =&gt; 'team_id', "value" =&gt; $sugar_data['team_id']),
              array("name" =&gt; 'team_set_id', "value" =&gt; $sugar_data['team_set_id']),
              array("name" =&gt; 'phone_fax', "value" =&gt; $sugar_data['phone_fax']),
              array("name" =&gt; 'billing_address_street', "value" =&gt; $sugar_data['address_street']),
              array("name" =&gt; 'billing_address_city', "value" =&gt; $sugar_data['address_city']),
              array("name" =&gt; 'billing_address_state', "value" =&gt; $sugar_data['address_state']),
              array("name" =&gt; 'billing_address_postalcode', "value" =&gt; $sugar_data['address_postalcode']),
              array("name" =&gt; 'billing_address_country', "value" =&gt; $sugar_data['address_country']),
              array("name" =&gt; 'shipping_address_street', "value" =&gt; $sugar_data['address_street']),
              array("name" =&gt; 'shipping_address_city', "value" =&gt; $sugar_data['address_city']),
              array("name" =&gt; 'shipping_address_state', "value" =&gt; $sugar_data['address_state']),
              array("name" =&gt; 'shipping_address_postalcode', "value" =&gt; $sugar_data['address_postalcode']),
              array("name" =&gt; 'shipping_address_country', "value" =&gt; $sugar_data['address_country']),
              array("name" =&gt; 'phone_office', "value" =&gt; $sugar_data['phone_work'])
          )
      )
  );
  </code></pre>
  
  <p>However, the row does not insert. I searched based on the ID and the account_name, and both returned 0 results.</p>
  
  <p>Thanks! I really appreciate the help, as this is due for completion by the end of the day today!</p>
  
  <p>Nick</p>