locked
CRM 2011 - Using CrmSvcUtil only for Selected Early Bound Entities RRS feed

  • Question

  • Hi,

    I am having lot many custom entities in my CRM instance due to which whenever I use CrmSvcUtil to generate Early Bound Classes my .cs file becomes very big around 10 MB. I am using this file in CRM Workflow Activity Project which makes Workflow Plug in size around 5-6 MB. This big size of Plug-In DLL some times cause problem while uploading on CRM using Plug-in registration tool, most of the time I get Time out error.

    I was wondering if there is way to generate Early Bound Classes only for selective Entities so that size of class file can be controlled. Or is there any other way to limit the size of Class file?

    I know best option to handle this problem is use of Late Bound Entities, but for now I wanted quick way to control the size of Plug-In DLL.

    Thanks


    makeer
    Friday, March 18, 2011 10:25 PM

Answers

  • You can filter which entities are generated from CrmSvcUtil by creating an extension library for the utility. 

    I actually just publsihed a blog post on how to do this:  Filtering Generated Entities with CrmSvcUtil

    Its not too much work and if you only need a few entities then the generated cs file comes out around 200 - 300k instead of 10MB.

    Hope this helps


    Erik Pool | Avanade XRM | http://erikpool.blogspot.com
    • Proposed as answer by Erik-lp Sunday, March 20, 2011 10:18 PM
    • Marked as answer by Makarand Keer Monday, March 21, 2011 7:29 PM
    Sunday, March 20, 2011 10:18 PM

All replies

  • You can filter which entities are generated from CrmSvcUtil by creating an extension library for the utility. 

    I actually just publsihed a blog post on how to do this:  Filtering Generated Entities with CrmSvcUtil

    Its not too much work and if you only need a few entities then the generated cs file comes out around 200 - 300k instead of 10MB.

    Hope this helps


    Erik Pool | Avanade XRM | http://erikpool.blogspot.com
    • Proposed as answer by Erik-lp Sunday, March 20, 2011 10:18 PM
    • Marked as answer by Makarand Keer Monday, March 21, 2011 7:29 PM
    Sunday, March 20, 2011 10:18 PM
  • Erik,

    Great work, and thanks a lot for sending extension library, I could generate .cs file. I havent tested it completely but will share my findings if I encounter any problem

    Thanks


    makeer
    Monday, March 21, 2011 7:31 PM