Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Error on calling the Xrm.Page.entity.save() method in the form onLoad event

$
0
0

Hi all,

here is a simple code that I don't understand why it doesn't work.

--------

function onLoad_account() {     Xrm.Page.data.entity.attributes.get("fax").setValue("12345678");     Xrm.Page.data.entity.save();  }

-------

As you can see, in the OnLoad event I simply set the value of fax = "12345678" and then I save the record but the system give me the error "Object doesn't suport the property or method". Perhaps isn't possible save in the onload event?

Could you help me?

Thanks :)


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>