web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

script error-resco mobile crm

(0) ShareShare
ReportReport
Posted on by

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)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You will have to learn how to troubleshoot code in Resco - www.resco.net/.../JSBridge-Guide.pdf

    Scroll to page 11. Good luck!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans