Skip to main content

The difference between Primary and Selected entity types in Lasernet criterion - Knowledgebase / D365 CE Connector / D365 CE Configuration - Formpipe Support Portal

The difference between Primary and Selected entity types in Lasernet criterion

Authors list

Both the Primary and Selected entity types are standard CrmParameters.“ Primary Entity Type” is normally called PrimaryEntityTypeName and is the name of the primary entity on a page. “Selected Entity Type” is called SelectedEntityTypeName and is the name of the entity selected in the grid.

The standard Lasernet flyout and button both have an enable-rule which validates if the control should be displayed or not. It validates PrimaryEntityTypeName and SelectedEntityTypeName against the criterion, and SelectedControlSelectedItemCount against “Multi select” on the method (Direct OData, OData Dialog or HTTP method).

Selected Entity Type and Multi-select are normally not used for the standard Lasernet flyout or button, as these controls are only attached to the main tab for every entity. However, it can be used if the customer adds their own custom button or flyout to a grid of entities, such as in the example given in the image below:

In this case, SelectedEntityTypeName would be “Quote”, and Multi-select would need to be “Yes”.


Additional Information

Please see the Microsoft documentation below for more information:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/customize-dev/pass-dynamics-365-data-page-parameter-ribbon-actions

https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg309332(v=crm.8)

Helpful Unhelpful

Share