locked
Display Rule not on Test environment RRS feed

  • Question

  • We are facing a strange issue with dynamics CRM 2011.

    I changed a display rule on the Email form on the development environment, exported the solution as managed, imported this solution to the Test environment, published it. But the display rule does not show up in the Test environment

    The display rule is included in the solution package. Below you find an extract containing the ribbondiffxml.

    Does anyone have a solution for this? 

    <RibbonDiffXml>
            <CustomActions>
              <CustomAction Id="Company.Form.email.MainTab.Respond.LiveEditor.CustomAction" Location="Mscrm.Form.email.MainTab.Respond.Controls._children" Sequence="41">
                <CommandUIDefinition>
                  <Button Id="Company.Form.email.MainTab.Respond.LiveEditor" Command="Company.Form.email.MainTab.Respond.LiveEditor.Command" Sequence="50" ToolTipTitle="$LocLabels:Company.Form.email.MainTab.Respond.LiveEditor.LabelText" LabelText="$LocLabels:Company.Form.email.MainTab.Respond.LiveEditor.LabelText" ToolTipDescription="$LocLabels:Company.Form.email.MainTab.Respond.LiveEditor.Description" TemplateAlias="o1" Image16by16="/_imgs/ribbon/replymail_16.png" Image32by32="/_imgs/ribbon/replymail_32.png" />
                </CommandUIDefinition>
              </CustomAction>
              <HideCustomAction Location="Mscrm.Form.email.Forward" HideActionId="CompanyMscrm.Form.email.Forward.HideAction" />
              <HideCustomAction Location="Mscrm.Form.email.Reply" HideActionId="CompanyMscrm.Form.email.Reply.HideAction" />
              <HideCustomAction Location="Mscrm.Form.email.ReplyAll" HideActionId="CompanyMscrm.Form.email.ReplyAll.HideAction" />
              <HideCustomAction HideActionId="Mscrm.Form.email.MainTab.Collaborate.HideAction" Location="Mscrm.Form.email.MainTab.Collaborate" Sequence="40" />
              <HideCustomAction HideActionId="Mscrm.Form.email.MainTab.Convert.HideAction" Location="Mscrm.Form.email.MainTab.Convert" Sequence="31" />
              <HideCustomAction HideActionId="Mscrm.Form.email.MainTab.ExportData.HideAction" Location="Mscrm.Form.email.MainTab.ExportData" Sequence="50" />
              <HideCustomAction HideActionId="Mscrm.Form.email.MainTab.Include.HideAction" Location="Mscrm.Form.email.MainTab.Include" Sequence="11" />
              <HideCustomAction HideActionId="Mscrm.Form.email.MainTab.Workflow.HideAction" Location="Mscrm.Form.email.MainTab.Workflow" Sequence="45" />
              <HideCustomAction HideActionId="Mscrm.Form.email.SaveAndNew.HideAction" Location="Mscrm.Form.email.SaveAndNew" Sequence="40" />
              <HideCustomAction HideActionId="Mscrm.Form.email.Send.HideAction" Location="Mscrm.Form.email.Send" Sequence="1" />
            </CustomActions>
            <Templates>
              <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
            </Templates>
            <CommandDefinitions>
              <CommandDefinition Id="Company.Form.email.MainTab.Respond.LiveEditor.Command">
                <EnableRules />
                <DisplayRules>
                  <DisplayRule Id="Company.Form.email.MainTab.Respond.LiveEditor.Command.DisplayRule.ValueRule" />
                </DisplayRules>
                <Actions>
                  <JavaScriptFunction FunctionName="ServiceAppointmentEmail.Functions.ReplyOnEmail" Library="$webresource:enc_Email" />
                </Actions>
              </CommandDefinition>
            </CommandDefinitions>
            <RuleDefinitions>
              <TabDisplayRules />
              <DisplayRules>
                <DisplayRule Id="Company.Form.email.MainTab.Respond.LiveEditor.Command.DisplayRule.ValueRule">
                  <ValueRule Field="directioncode" Value="0" />
                </DisplayRule>
              </DisplayRules>
              <EnableRules />
            </RuleDefinitions>
            <LocLabels>
              <LocLabel Id="Company.Form.email.MainTab.Respond.LiveEditor.Description">
                <Titles>
                  <Title languagecode="1033" description="Creates reply email with Live Editor" />
                  <Title languagecode="1043" description="Creates reply email with Live Editor" />
                </Titles>
              </LocLabel>
              <LocLabel Id="Company.Form.email.MainTab.Respond.LiveEditor.LabelText">
                <Titles>
                  <Title languagecode="1033" description="Reply with Live Editor" />
                  <Title languagecode="1043" description="Reply with Live Editor" />
                </Titles>
              </LocLabel>
            </LocLabels>
          </RibbonDiffXml>

    Tuesday, March 4, 2014 9:02 AM

Answers

  • We did something wrong with our managed solution. It's fixed now.
    • Marked as answer by MarkWillems Monday, March 10, 2014 1:34 PM
    Monday, March 10, 2014 1:34 PM

All replies

  • Hi,

    You mean to say that the functionality is working on Development server, but not working on test server ?

    Please check when you export the solution as Managed Solution, select related entities in the list.

    This should work on test too.


    If this post answers your question, please click &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

    Tuesday, March 4, 2014 10:43 AM
  • We did something wrong with our managed solution. It's fixed now.
    • Marked as answer by MarkWillems Monday, March 10, 2014 1:34 PM
    Monday, March 10, 2014 1:34 PM