O'Reilly logo

Microsoft Dynamics CRM 2011 Application Design by Mahender Pal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required