Book Image

Microsoft Dynamics CRM 2011 Application Design

By : Mahender Pal
Book Image

Microsoft Dynamics CRM 2011 Application Design

By: Mahender Pal

Overview of this book

<p>Microsoft Dynamics CRM is an out of the box solution for your business's sales and marketing needs. Giving you the tools and services you need to run efficiently and effectively. <br /><br />"Microsoft Dynamics CRM 2011 Application Design" is the solution to your business needs. Whether you are just starting out or are an old hand this book will provide you with the results you need. Guiding you through real world applications that will benefit your business instantly.<br /><br />Throughout this book you will be building your knowledge through hands on application development from a simple employee recruitment application through to managing an entire hotel.<br /><br />The first chapter is a whirlwind tour of Microsoft CRM preparing you for the applications that lies ahead. As you progress through the book your skills will be developed and stretched further as you customize CRM for your own needs. Each chapter will build up your skill with applications that cover ERP, business logical and an array of other topics that will ultimately allow you to develop your own advanced applications. Then you will utilize your skills to develop web and even mobile applications that can be used in any aspect of your day. The final challenge for you to overcome is an issue tracking application that will test the skills you have learnt to the limit.<br /><br />"Microsoft Dynamics CRM 2011 Application Design" gives you the tools you need to successfully build fully customized applications for all of your business needs.</p>
Table of Contents (17 chapters)
Microsoft Dynamics CRM 2011 Application Design
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Data Model
Index

Attaching a web resource to Microsoft CRM 2011 entities


Now we have a basic understanding of web resources, let's create a web resource of the type JavaScript that will have the function name Hello, and attach it to a Microsoft CRM 2011 entity.

Use the following steps to create a "Hello World" JavaScript web resource:

  1. Navigate to Settings | Solutions and open the MyDevelopment solution.

  2. Navigate to Web Resources and click on New.

  3. Enter the following information:

    • Name: HelloWorld.js

    • Display Name: HelloWorld

    • Type: Script (Jscript)

    • Language: English

  4. Click on Text Editor.

  5. Enter the following code under Source Field:

    function Hello()
    {
    alert('Welcome to Web Resource');
    }
  6. Save and publish the web resource.

Now that our web resource is ready, we can attach this web resource to the entity form and associate our Hello function with the form entity event. Let's call this function in the OnLoad event of the account entity form.

First we need to add the account entity to our solution. Once the account entity...