GetObjectTypeCode return null

Sep 10, 2013 at 7:47 AM
If I use GetObjectTypeCode() in HTML Webresource it always return null value.
<!DOCTYPE html>
<html>
  <head>
    <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">
    </style>
  </head>
  <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'));
...
...
...
</html>
Coordinator
Sep 18, 2013 at 2:38 PM
Hi.

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

A bit occupied with work and personal issues.

Regards,
Jaimie