title: CRM Error Object doesn't support property or method 'getValue'
body: <p>I'm starting to write a simple javascript on CRM Contact page to retrieve the parent account ID.</p>
  
  <p>I set the script as an onChange event on the parent account field (parentcustomerid) and set it to "pass execution context as parameter".</p>
  
  <p>This is my code:</p>
  
  <pre><code>function PopulateAccountType(ParentAccount) {
  
  if (ParentAccount != null) {
      var Account = new Array();
      var Account = Xrm.Page.getAttribute("parentcustomerid").getValue();
      {
          var AccountId = Account[0].id;
      }
    }
  }
  </code></pre>
  
  <p>Not sure why I keep getting error on the OnChange event Object doesn't support property or method 'getValue'.</p>
  
  <p>I've been using 'getValue' function successfully but is it different when the value is an ID?</p>
  
  <p>Thanks for your help, greatly appreciate.</p>
  
  <p>-elisabeth</p>