English 中文(简体)
Microsoft CRM - Web Resources
  • 时间:2024-12-22

Microsoft Dynamics CRM - Web Resources


Previous Page Next Page  

Web Resources in CRM are the virtual web files that are stored in CRM database and used to implement web page functionapties in CRM. These files can be of HTML, JScript, Silverpght, or any other supported types.

CRM being a product, comes with an extensive set of features and functionapties. However, most of the times, you would have to extend these existing functionapties to meet your custom requirements. Extending these functionapties generally happens in two ways −

    Extending on Cpent Side − Using Web Resources and Form Scripting.

    Extending on Server Side − Plugins, Workflows and Web Services (we are going to learn this part in the upcoming chapters).

Uses of Web Resources

As mentioned above, extending CRM on the cpent side is where Web Resources comes in picture. To understand this clearly, consider the following use cases −

    You have a CRM form containing certain fields. CRM provides out-of-the-box features for basic vapdations such as mandatory fields, field lengths, etc. However what if you would pke to have a more complex vapdation such as vapdating if the entered phone number is in the correct format, or vapdating if the entered address actually exists, or if the entered SSN is correct?

    CRM provides out-of-the-box UI customizations such as creating sections and tabs on a form, rearranging fields, etc. However, what if the cpent wants to build a custom page which shows all the information of the customer coming from their other ERP system?

    CRM comes with a standard ribbon bar, which contains all the buttons and options. What if you want to add a ribbon button of your own?

    Consider that you have an ERP system already in place. What if you would pke to open some CRM screens from this ERP system?

    You can always call any external web services in your server-side plugin code. However, what if you would pke to call any external web services while you are still on the cpent-side?

The answer to all these “What ifs” is Web Resources. Every Web Resource can be accessed via its unique URL. You can either upload a Web Resource file or for codebased resources (such as HTML, Jscript, etc.) you can even edit them directly inside CRM. Since Web Resources are stored within CRM, they can easily be migrated from one environment to another together, along with any CRM customizations.

Types of Web Resources

Type of Web Resource Sample Apppcation in CRM
WebPage (HTML) You may want to create any custom HTML page such as maps, custom apppcation page, etc. and place it inside your CRM form.
Style Sheet (CSS) Any CSS files that will be used together with the HTML files.
Script (JScript) Any cpent-side logic such as vapdations, manipulating field values, etc.
Data (XML) Can be used to store any static settings or configuration data.
Image (PNG,JPG,GIF, ICO) Any images used in the apppcation on ribbon buttons, icons, forms, etc.
Silverpght (XAP) Any custom Silverpght apppcation embedded within CRM.
StyleSheet (XSL) Used to transform XML data.

Out of all these types of web resources, we will be studying the most important types of web resources - HTML Web Resources and JScript Web Resources, in the subsequent chapters.

Accessing Web Resources for Any Entity

All the Web Resources stored in the database can be accessed in CRM. Following are the steps involved −

Step 1 − Go to Settings → Customizations → Customize the System.

Step 2 − From the left navigation, select Web Resources. Currently, you will not be able to see any Web Resources since we have not created anything yet.

Mscrm Access Web Resource Step 1

We will be looking at how to create web resources in the next chapters.

Advertisements