How do I update one database field in CRM 4.0 which is NOT on the form using java script

Posted on 2011-10-06
Last Modified: 2012-06-21
Hello Experts,
the CRM order you can either maintain a Contact or Account into the Customer field. Depending on the type the order is linked either to the contact or account.
The database 'dbo.SalesOrderBase' has two fields for the link:
- AccountID
- ContactID
I would like to use java script to update the 'AccountID' if a Contact is entered into the order Customer field.
Does anybody have an example code on how to update a database field which is not on the form?
Question by:WIttenstein
    1 Comment
    LVL 27

    Accepted Solution

    Hi WIttenstein,

    You can use a CRM workflow to achieve this easily.
    In case you still want to use JavaScript you will have to write a lot of code manually.

    You can use a helper library from Avanade : to simplify your task but without proper knowledge of CRM and DHTML, it will be really really difficult to do so.


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
    On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now