Hide Headers, Commandbar, Tabs in D365 Forms

Image
There are options available to hide Command Bar, Header part and Tabs.  Below is the screenshot which highlights these areas for your understandings. let formContext = Xrm.Page ; or let formContext = executionContext.getFormContext(); // Hide Header part formContext.ui.headerSection.setBodyVisible(false);   //Hide Command bar formContext.ui.headerSection.setCommandBarVisible(false);   // Hide Tabs formContext.ui.headerSection.setTabNavigatorVisible(false); After all are hidden,

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

Using Resx file in D365 Plugins/Workflows

Run Power automate under modifying user context