locked
New SendEmail MP in Exchange Connector Update for 2012 RRS feed

  • Question

  • I have the same problem as here: http://social.technet.microsoft.com/Forums/en-US/systemcenterservicemanager/thread/8f3be2b8-a865-4893-a0b4-4ce2aeb63721

    The XML for the SendEmail MP is missing the whole middle section (the documentation says to search for the UpdateInstance section, and it is not in the MP at all.

    I had the old version in place and we deleted it all like in the instructions, I created the list value and the template for the notification, but I am not sure how to proceed. This is the XML from the imported MP.

    <ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <Manifest>
        <Identity>
          <ID>SendEmail</ID>
          <Version>2.0.0.0</Version>
        </Identity>
        <Name>SendEmail</Name>
        <References>
          <Reference Alias="System">
            <ID>System.Library</ID>
            <Version>7.5.1349.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Console">
            <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
            <Version>7.5.1349.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="IncidentLibrary">
            <ID>System.WorkItem.Incident.Library</ID>
            <Version>7.5.1349.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Authoring">
            <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring</ID>
            <Version>7.5.1349.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Administration">
            <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Administration</ID>
            <Version>7.5.1349.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <TypeDefinitions>
        <EntityTypes>
          <ClassTypes>
            <ClassType ID="IncidentSendMailExtension" Accessibility="Public" Abstract="false" Base="IncidentLibrary!System.WorkItem.Incident" Hosted="false" Singleton="false" Extension="true">
              <Property ID="MessageType" Type="enum" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" EnumType="MessageType" />
              <Property ID="Message" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="4000" MinLength="0" Required="false" Scale="0" MaxValue="-2147483648" />
            </ClassType>
          </ClassTypes>
          <EnumerationTypes>
            <EnumerationValue ID="MessageType" Accessibility="Public" />
          </EnumerationTypes>
        </EntityTypes>
      </TypeDefinitions>
      <Categories>
        <Category ID="SendEmail.Category" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
          <ManagementPackName>SendEmail</ManagementPackName>
          <ManagementPackVersion>2.0.0.0</ManagementPackVersion>
          <ManagementPackPublicKeyToken>31bf3856ad364e35</ManagementPackPublicKeyToken>
        </Category>
        <Category ID="MessageTypeEnumViewTasksCategory" Target="MessageType" Value="Authoring!Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring.EnumerationViewTasks" />
        <Category ID="MessageTypeEnumVisibleToUserCategory" Target="MessageType" Value="System!VisibleToUser" />
      </Categories>
      <Presentation>
        <ConsoleTasks>
          <ConsoleTask ID="SendEmailTask" Accessibility="Public" Enabled="true" Target="IncidentLibrary!System.WorkItem.Incident" RequireOutput="false">
            <Assembly>Console!SdkDataAccessAssembly</Assembly>
            <Handler>Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler</Handler>
            <Parameters>
              <Argument Name="Assembly">SendEmail</Argument>
              <Argument Name="Type">SendEmail.SendEmailTaskHandler</Argument>
              <Argument>SendEmail</Argument>
            </Parameters>
          </ConsoleTask>
        </ConsoleTasks>
        <ImageReferences>
          <ImageReference ElementID="SendEmailTask" ImageID="Administration!Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.Image.Notification" />
        </ImageReferences>
      </Presentation>
      <LanguagePacks>
        <LanguagePack ID="ENU" IsDefault="true">
          <DisplayStrings>
            <DisplayString ElementID="SendEmail">
              <Name>SendEmail</Name>
            </DisplayString>
            <DisplayString ElementID="IncidentSendMailExtension">
              <Name>Extension of Incident</Name>
              <Description>Extension of class Incident</Description>
            </DisplayString>
            <DisplayString ElementID="IncidentSendMailExtension" SubElementID="Message">
              <Name>Message</Name>
            </DisplayString>
            <DisplayString ElementID="IncidentSendMailExtension" SubElementID="MessageType">
              <Name>Message Type</Name>
            </DisplayString>
            <DisplayString ElementID="MessageType">
              <Name>Message Type</Name>
              <Description />
            </DisplayString>
            <DisplayString ElementID="SendEmailTask">
              <Name>Send Email</Name>
              <Description />
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
      </LanguagePacks>
      <Resources>
        <Assembly ID="Assembly.SendEmail" Accessibility="Public" FileName="SendEmail.dll" HasNullStream="false" QualifiedName="SendEmail, Version=2.0.0.0" />
      </Resources>
    </ManagementPack>
    Also, I haven't been able to identify for sure what is in this version that wasn't in the old one (or if they are the same)... I had issues with the stability of the old one so I am hoping this one is mproved. Mainly what we need is the ability to email the Affected user, and let them respond which updates the incident and then notifies the Assigned to.

    Monday, February 4, 2013 8:27 PM

Answers

  • I think we figured this out! When I was creating my templates I was copying my html from my production (working system) to my development system. Apparently copying the html tags for the ID, Title, etc does not create the rest of the XML like you need to. When I recreated them only copying my html tags, but using the insert button to apply the items (even though the html looked exactly the same), then it created the correct XML.
    • Marked as answer by AudreyPaige Wednesday, February 6, 2013 8:28 PM
    Wednesday, February 6, 2013 8:28 PM