title: Service Now update()
body: <p>I want update problem state as closed when incident state is closed</p>
  
  <p>I tried this code but it is updating all the records in problem table, But I want to update only that related table.</p>
  
  <pre><code>// update the state of all active incidents to 4 - "Awaiting User Info"
  var gr = new GlideRecord('incident')
  gr.addQuery('active', true);
  gr.query();
  gr.state = 4;
  gr.updateMultiple();
  </code></pre>