GetObjectTypeCode return null

Sep 10, 2013 at 8:47 AM
If I use GetObjectTypeCode() in HTML Webresource it always return null value.
<!DOCTYPE html>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="/WebResources/cp_LastActivitiesCSS" />
    <script src="/WebResources/ClientGlobalContext.js.aspx" type="text/javascript" ></script>
    <script type="text/javascript" src="/WebResources/cp_JQuery"></script>
    <script type="text/javascript" src="/WebResources/cp_json2"></script>
    <script type="text/javascript" src="/WebResources/cp_XrmServiceToolkit14"></script>
    <script type="text/javascript" src="/WebResources/cp_CommonFormsFunctions"></script>
    <style type="text/css">
  <body id="body">
    <script type="text/javascript">
        var data = [];
        var today = new Date();
        var begindate =  new Date(today.setDate(today.getDate() - 30));
        alert('TypeCode: ' + XrmServiceToolkit.Common.GetObjectTypeCode('account'));
Sep 18, 2013 at 3:38 PM

Thanks for submitting the issue. Will have a look once I have my new VM built.

A bit occupied with work and personal issues.