Activate Deactivate Record using JavaScript in CRM Hello everyone, Setting statecode and statuscode attributes using javascript in CRM is not easy as setting other fields unfortunately. But it can be done Normally we expect below javascript code snippets to work but it does not if you try to change the statecode value. 1 2 Xrm.Page.getAttribute( "statecode" ).setValue(1); Xrm.Page.getAttribute( "statecode" ).setSubmitMode( "always" ); In this blog post I am going to talk about activate deactivate record using javascript in crm. You will learn how to change statecodes and statuscodes using javascript in CRM as well. In this example I’m going to deactivate a custom entity record with a statuscode 2which refers to Resolved in my case. Activate – Deactivate Record using JavaScript in CRM 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ...
Posts
Showing posts from October, 2015