<CrmParameter> (RibbonDiffXml)
Applies To: Dynamics CRM 2015
Represents data retrieved from the Microsoft Dynamics CRM application that may be passed as a parameter.
Syntax
<CrmParameter
Name = “String”
Value= ["CommandProperties" |
"PrimaryEntityTypeCode" |
"PrimaryEntityTypeName" |
"PrimaryItemIds" |
"FirstPrimaryItemId" |
"PrimaryControl" |
"PrimaryControlId" |
"SelectedEntityTypeCode" |
"SelectedEntityTypeName" |
"FirstSelectedItemId" |
"SelectedControl" |
"SelectedControlSelectedItemCount" |
"SelectedControlSelectedItemIds" |
"SelectedControlSelectedItemReferences" |
"SelectedControlAllItemCount" |
"SelectedControlAllItemIds" |
"SelectedControlAllItemReferences" |
"SelectedControlUnselectedItemCount" |
"SelectedControlUnselectedItemIds" |
"SelectedControlUnselectedItemReferences" |
"OrgName" |
"OrgLcid" |
"UserLcid"]
/>
Attributes and Elements
The following table lists the attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
Type |
Usage |
||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name |
Represents the name of a query string parameter passed for this value when using a Url element. Represents the name of a query string parameter passed using the <Url> (RibbonDiffXml) element. |
String |
See Remarks |
||||||||||||||||||||||||||||||||||||||||||||||||
Value |
Specifies the value to be passed as a parameter. Valid values:
|
Enumeration |
Required |
Child Elements
This element has no child elements.
Parent Elements
Element |
Description |
---|---|
Specifies an action that calls a function from a specific JavaScript library. |
|
Specifies a rule used with an EnableRule definition that is composed of a reference to a function within a JavaScript library. |
|
An action that opens a web page at a specified address. |
Remarks
When the CrmParameter is a child of the <Url> (RibbonDiffXml) a Name attribute is required. When the CrmParameter is a child of the <JavaScriptFunction> (RibbonDiffXml) element, the Name attribute is not valid.
Note
-
Value attributes referring to a "Primary..." item refer to the record being viewed in the form.
-
Value attributes referring to the "Selected..." item refer to rows selected within a grid.
When a grid is presented within a form or as an associated view the "Primary.." values refer to the record context in which the grid is displayed. This is true as long as the grid is associated with an entity relationship.
When a grid is displayed independently from any entity relationship, such as in the Homepage grid or if a subgrid is added to a form without being associated with an entity relationship, the "Primary..." values will be null.
Note
Some CrmParameter values pass an EntityReference object. This object contains the following properties:
-
Id: A string of the GUID Id value for the record.
-
Name: A string of the value of the Primary field for the record.
-
TypeCode: A number representing the unique type of entity for the record.
-
TypeName: A string representing the unique name of the entity for the record.
Element Information
XPath |
|
Schema Name |
|
Validation File |
RibbonTypes.xsd |
Can be Empty |
Yes |
See Also
Customize commands and the ribbon
© 2016 Microsoft. All rights reserved. Copyright