
I am trying to create a record in crm from(resco) mobile crm .But it shows me a error in my lib(jsbrige.js//v8.2.0) as follows,
lineon:1227: window.MobileCRM.bridge.command
Uncaught TypeError: Cannot read property 'command' of null
this it my code i have used to create ,
<html>
<head>
<title>form javascript</title>
<script type="text/javascript" src="../../script/JSBridge.js"></script>
</head>
<body>
<button onclick="load()">create</button>
<script type="text/javascript">
function load() {
debugger;
var account = MobileCRM.DynamicEntity.createNew("account");
var props = account.properties;
account.properties["name"] = "test from script";
account.save(
function (error){
if (error)
MobileCRM.bridge.alert("An error occurred: " + error);
else {
alert("created");
MobileCRM.bridge.alert("record created");}});}
</script>
</body>
</html>
*This post is locked for comments
I have the same question (0)Hello,
You will have to learn how to troubleshoot code in Resco - www.resco.net/.../JSBridge-Guide.pdf
Scroll to page 11. Good luck!