Skip to Content
Microsoft Dynamics CRM 2011 Unleashed
book

Microsoft Dynamics CRM 2011 Unleashed

by Marc Wolenik, Damian Sinay, Rajya Bhaiya
September 2011
Intermediate to advanced content levelIntermediate to advanced
1008 pages
24h 27m
English
Sams
Content preview from Microsoft Dynamics CRM 2011 Unleashed

JavaScript

This section provides an example of how to get and set the address from an account using JavaScript by querying the CRM ODATA (REST) Service. This sets the contact address when selecting an account as the parent customer field automatically (without requiring you to enter it again).

Tip

In order to have this sample working, you must select an account with the address fields populated with some data.

Caution

The following sample works only if you select a parent account for a contact and not a parent contact. However, after reviewing this sample, you can modify it to work with parent contacts if desired.

The purpose of this sample is to show how you can consume an OData (REST) service without having to build a .NET application ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Dynamics CRM 2013 Unleashed

Microsoft Dynamics CRM 2013 Unleashed

Marc Wolenik
Microsoft Dynamics® CRM 2011 Step by Step

Microsoft Dynamics® CRM 2011 Step by Step

Jim Steger Mike Snyder and Brendan Landers

Publisher Resources

ISBN: 9780132682084Purchase book