Export (0) Print
Expand All

Sample: Web resource utility

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Manually creating Web resources one at a time using the customization tools can take a long time when you have to create many files. The Web Resource Utility is a WPF application project that you can compile and run to import many Web Resource eligible files from a folder structure with a consistent naming convention based on the folder structure.

The Web Resource Utility sample project is included with the downloadable files for the SDK at SDK\Tools\WebResourceUtility.


For more information, see the Readme.docx file.

To use Microsoft Dynamics CRM Online (or any claims-based environment), you must install Windows Identity Foundation. For more information, see Install Windows Identity Foundation (WIF) 3.5.

The solution must be built in Microsoft Visual Studio 2010 before running. Double-click the “WebResourceUtility.sln” to open the source code in Visual Studio 2010. Open and view the Solution Explorer.

This solution uses linked files and requires access to the following files also found in the SDK downloadable files in order to compile:

In the DataAccess folder:

  • sdk\samplecode\cs\helpercode\CrmServiceHelpers.cs

  • sdk\samplecode\cs\helpercode\deviceidmanager.cs

  • sdk\samplecode\cs\helpercode\myorganizationcrmsdktypes.cs

You may need to manually update the links for these files before trying to build the solution or you may experience compilation errors.

This solution includes references to the following files:

  • sdk\bin\microsoft.crm.sdk.proxy.dll

  • sdk\bin\microsoft.xrm.sdk.dll


In addition to creating and updating Web Resources, the Web Resource Utility code demonstrates several applications of the Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online APIs:

Managing connections
The Web Resource Utility preserves connections to multiple Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online servers so the user doesn’t need to enter connection information each time.

Retrieving data about solutions
The Web Resource Utility retrieves data about available unmanaged solutions and creates Web Resources using the customization prefix defined by the publisher of the solution.

The following screenshot shows the Web Resource Utility user interface:

The Web Resource Utility user interface

See Also

Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft