Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Microsoft Dynamics CRM 2016

You're reading from   Mastering Microsoft Dynamics CRM 2016 An advanced guide for effective Dynamics CRM customization and development

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781786466617
Length 402 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Deepesh Somani Deepesh Somani
Author Profile Icon Deepesh Somani
Deepesh Somani
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. History of Dynamics CRM FREE CHAPTER 2. Working with Sales 3. Working with Services 4. Working with Marketing 5. Working with the XRM Framework 6. Analytics with CRM 7. Workflow Development with Dynamics CRM 8. Client-Side Scripting 9. Enhancements for Mobile 10. Plugin Development with Dynamics CRM 11. Business Process Flows and Business Rules 12. New Features in CRM 2016

Scenario 2


John is working with a requirement according to which he needs to populate the category and subcategory of a selected product on the form. He is using JavaScript for this. There are three different lookups on the form: Product, Category, and Sub Category. Now, as per John's requirement, when a user selects a product in the lookup field, the category and subcategory of the product need to be populated on the onchange event of the product lookup on the form. Therefore, we can make a Web API call from JavaScript to retrieve both the category and the subcategory of a selected product and can further set those values for lookups using JavaScript functions.

Why use Web API?

Using JavaScript is one of the most convenient ways to perform operations on data in Dynamics 365; you can do this with the help of the Web API.

The Web API sends and receives data in JSON format, which is easy to convert into objects in JavaScript. So, most developers use the Web API for performing CRUD operations...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime