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
Medium Priority
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

Chinmay Patel earned 2000 total points
ID: 36927450
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 : http://www.avanadeblog.com/xrm/2010/07/updated-crmservicejs.html to simplify your task but without proper knowledge of CRM and DHTML, it will be really really difficult to do so.


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

807 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