title: Azure insert script not working
body: <p>I have two tables in an Azure database and I am trying to add a script where the user can insert data into one table field every time something is entered into the table Transactions. The tables are in different schemas but in the same database. </p>
  
  <p>When a row is entered in the database Transactions, I need to check if the user account from the row is in the table 'UserTable', fetch the record from UserTable and then replace the data in the field 'Balance'</p>
  
  <p>I have tried the following script but nothing happens. Any ideas as to what I am doing wrong? </p>
  
  <pre><code>function insert(item, user, request) 
  {
  
  var userTable = tables.getTable('UserTable');
  var total = item.Amount + userTable.Balance;
  var data = {
          Balance: total,
      };
  
  if(userTable.UserAccount === item.UserAccount)
  {
  userTable.insert(data);
  }
  
  request.execute();
  }
  </code></pre>