Ribbon debug/Command checker tool

Image
Background: Usually when something goes wrong in the button visibility or to find out the rules, actions(js) being used in the ribbon button, we go and find either in the ribbondiffxml or through ribbon workbench. This is a time taking process.  Solution: Now there is a built-in tool called 'Command Checker' available. Using this tool, we can easily troubleshoot the button visibility related issues in home page grid, entity form, sub grid and global command bar as well.  To use/enable this tool, pass "ribbondebug=true" parameter in the url. Example, if you want to troubleshoot some button in Account form, below is the url,  https://trial.crm5.dynamics.com/main.aspx?appid=4db5bcb8-675b-ec11-8f8f-002248599a15&pagetype=entityrecord&etn=account&id=83883308-7ad5-ea11-a813-000d3a33f3b4 &ribbondebug=true This will enable the command bar in 3 places. 1. In the header's right side 2. In the Form command bar 3. If the form has any sub grids. Co...

Using Shared libraries in D365 CE Plugin

Requirement:

Sometimes, we may need to create a common project to keep the business logics which should be referenced in multiple projects.

Solution:

In C#, we have a project type called, "Shared Projects". Below is the screenshot for reference.



Project will be created as a blank project.


Project structure can be created by adding folders and files manually in the way we want as shown in the above screenshot.

This project can be referenced in others projects similar to the regular library project as shown below.



Shared project cannot be compiled/build directly. During the build of the Project where it is referenced, it will be build and part of the Project's dll where it is referenced.

Pros:
Shared projects helps us separate the Business logics(helper classes) from the actual Plugin project and can be referenced in other project areas too like integrations instead of duplicating the logics.

Comments

Popular posts from this blog

Convert datetime to user local in D365 Plugins

Show/Hide ribbon button based on the selected view in the D365 subgrid

Ribbon debug/Command checker tool