INTRODUCTION
This article describes how you can add the DocumentsCorePack “Create Document”-button for MS CRM 2011 to your form. This can be done manually via the Ribbon Work Bench for CRM 2011.
Addon: DocumetnsCorePack for MS CRM 2011
Result: In the sceenshow below you can see the new added DocumentsCorePack “Create Document”-button for the entity account:
![clip_image038 clip_image038]()
Screenshot shows “Create Document”-button for account entity
General Information
RibbonWorkBench can be downloaded here.
Manuals (please have a look at them before using):
…
HOW TO: add the DocumentsCorePack for MS CRM 2011 “Create Document”-button in CRM, step-by-step description
First in In CRM create a new Solution. To do so, please navigate to “Settings” and choose “Solutions” in the Sidebar. You can give it any name you want. (See next screenshot).
![clip_image002 clip_image002]()
Screenshot shows new solution form in CRM. Click to enlarge.
After saving, the form will reload. Hit on “Add Existing” -> “Entity”. See next screenshot.
![clip_image003 clip_image003]()
Screenshot shows where to find the “Add Existing” button in CRM. Click to enlarge.
In the popping up window, choose the entity to which the DCP-Button should be added.
In this example I choose “Account” and hit [OK]. (See next screenshot).
![clip_image005 clip_image005]()
Screenshot shows choosen entity where the DCP “Create Document”-button should be added. Click to enlarge.
On the next page choose “No, do not include required components” and hit [OK]. (See next screenshot).
![clip_image007 clip_image007]()
Screenshot shows “Missing Required Components” window in CRM. Click to enlarge.
Then hit on “Add Existing” again. But this time, please select “Web Resource”.
The popping up window will show you all installed web resources. Select “ptm_Icon16x16”, “ptm_Icon32x32” and “ptm_dcp_js_jslibrary”. (See next screenshots).
![clip_image009 clip_image009]()
![clip_image011 clip_image011]()
Screenshots show the web resources to choose. Click to enlarge.
Your solution window will look like this:
![clip_image013 clip_image013]()
Screenshot shows finished solution in CRM. Click to enlarge.
Next go to the solution section of CRM again.
Only to be on the safe side, I would recommend creating a backup. To do this, mark your newly created solution and hit “Export”.
![clip_image015 clip_image015]()
Screenshot shows, how to create a solution backup in CRM. Click to enlarge.
Click through the dialog. It is important, that you let “Unmanaged” selected on the last page:
![clip_image017 clip_image017]()
Screenshot shows “Export Solution – Webpage Dialog” – window in CRM. Click to enlarge.
Hit [Export] and save it.
Now you can start creating the button.
In the solution-section of CRM double-click on the “RibbonWorkbench”-solution. (See next screenshot).
![clip_image019 clip_image019]()
Screenshot shows “Ribbon Workbench”-solution in CRM. Click to enlarge.
Then the ribbon work bench will open. First you have to select your before created solution, containing the entity and the DCP web resources. (See next screenshot).
![clip_image020 clip_image020]()
Screenshot shows opened ribbon work bench in CRM. Click to enlarge.
The loaded RibbonWorkBench will look like the following:
![clip_image022 clip_image022]()
Sceenshot shows loaded Ribbon WorkBench in CRM. Click to enlarge.
Now chose “Form” in the dropdown-box in the right upper corner.
Next select “Group” and bring it to any place on your form via drag and drop.
Thereafter, select the newly added group in the form and you will see its properties on the right side. You can give your group a specific Id. (See next screenshot).
![clip_image024 clip_image024]()
Your selected “Template” may be different.
Next add a button to your group, again via drag and drop.
Change the Id, select the images and give it a name. (See next screenshot)
![clip_image026 clip_image026]()
Now you have to add the command of the button. In the middle of the screen you can find “Commands”. Right-click on it -> “Add new”. (See next screenshot).
![clip_image028 clip_image028]()
Screenshot shows, where to add the command of the newly created button. Click to enlarge.
On the right-side you can see all properties of the new command.
I would recommend giving it a meaningful Id.
Then Hit on the lookup next to “Actions”. In the popping up window hit [Add]. (See next screenshot)
![clip_image030 clip_image030]()
In the next window choose “Javascript Function Action” and [OK]. (See next screenshot).
![clip_image031 clip_image031]()
In “FunctionName” type in “DCP.Lib_Registry.printInWord” and for “Library” choose “ptm_dcp_js_jslibrary”. Hit [OK]. (See next screenshot).
![clip_image032 clip_image032]()
Back in the WorkBench mark your button, to see its properties on the right side.
For “Command” choose the newly created command via the id. (See next screenshot).
![clip_image034 clip_image034]()
Now the configuration is done, hit on “Publish Solution” to import and publish the new solution containing the button. (See next screenshot).
![clip_image036 clip_image036]()
Screenshot shows, where to publish the new solution in CRM. Click to enlarge.
After the process has finished, your button will be available and ready to use on the Accounts’ form. (See next screenshot).
![clip_image038 clip_image038]()
Sceenshot shows newly added “Create Document”-button in CRM for the entity account. Click to enlarge.
Please do not hesitate to contact us, should you require further information or our assistance.