CR Email Notification

I am trying to create an email notification when a CR is promoted to the state of In Review from the state of New. Our CRs do not have a workflow so I configured the email notification in the life cycle state of In Review. Unfortunately, it does not work. I tested my query string in AML Studio and it works.What do I have wrong?


Subject

${Item[@type="a_CR"]/a_business_unit} CR Number ${Item[@type="a_CR"]/cr_number} is Pending Your Review

Query String

<Item type="a_CR" action="get" select="id,cr_number,a_business_unit,change_description,change_reason,req_dept">
<id>${Item/id}</id>
</Item>



Body HTML

${Item[@type="a_CR"]/cr_number} is now pending your review in Innovator.
<br/><br/>
<table>
    <tr>
        <td>Business Unit:</td>
        <td>${Item[@type="a_CR"]/a_business_unit}</td>
    </tr>
    <tr>
        <td>CR Number:</td>
        <td>${Item[@type="a_CR"]/cr_number}</td>
    </tr>
    <tr>
        <td>Change Request:</td>
        <td>${Item[@type="a_CR"]/change_description}</td>
    </tr>
    <tr>
        <td>Change Reason:</td>
        <td>${Item[@type="a_CR"]/change_reason}</td>
    </tr>
    <tr>
        <td>Requesting Department:</td>
        <td>${Item[@type="a_CR"]/req_dept}</td>
    </tr>
    
</table>

  • Hello Dkinsley,

    The first thing I would check is that the email server itself is working. When you installed Aras Innovator, you gave it an SMTP server which would have defaulted to "queue" but you might need to change it- look at your InnovatorServerConfig.xml file (it will be in the installation folder for your instance) and look for "Mail SMTPServer" to see what it's currently set to. 

    While you're in the config file, there's a good quick way to test things. Look for the email_debug_option in your config file, and if that line starts with "disabled_operating_parameter" change that to "operating _parameter" instead. That will send any emails you would generate to a local temp folder instead, so you should be able to look at them there. If they exist in that folder, and they look like what you want them to look like, then the problem is with your SMTP configuration. If they don't get created in that folder, then the issue might be with how your life cycle state is set up.

    Hope that at least narrows down the problem! Let me know which way it turns out, and I can look at giving you some more specific advice.

    Skyler C.

  • Hello Skyler,

    the email goes out but it does not have any of the data. Sorry i was clear at the beginning. In other words it will have CR number             is pending your review. It does not pull in the data.

  • Dkinsley,

    Based on what you have posted I would assume the e-mail is getting through with a Subject line, but no information and the body does not have anything in it.  Is the Body HTML written exactly how it is in the message?  What you have posted is not standard HTML formatting.  Here are my suggestions that might make it work.  I would recommend comparing what you are doing to the Configuring Aras Innovator Email Notifications blog.  It is what helped me get my stuff working. 

    Query String

    <Item type="a_CR" action="get" id="${Item/id}" select="id,cr_number,a_business_unit,change_description,change_reason,req_dept">
    </Item>

    Body HTML 

    <body>

    <p>${Item[@type="a_CR"]/cr_number} is now pending your review in Innovator.</p>

    <br/><br/>

    <table>

       <tr>

            <td>Business Unit:</td>

            <td>${Item[@type="a_CR"]/a_business_unit}</td>

       </tr>

        <tr>

            <td>CR Number:</td>

            <td>${Item[@type="a_CR"]/cr_number}</td>

        </tr>

        <tr>

            <td>Change Request:</td>

            <td>${Item[@type="a_CR"]/change_description}</td>

        </tr>

        <tr>

            <td>Change Reason:</td>

            <td>${Item[@type="a_CR"]/change_reason}</td>

        </tr>

        <tr>

            <td>Requesting Department:</td>

            <td>${Item[@type="a_CR"]/req_dept}</td>

        </tr>

    </table></body>

  • Nathan,

    Thank you for your reply. I do get an email message with text in the subject and in the body but no data/information populated.

    I tried replacing my scripts with your suggested scripts but I still get the same result. I have the email configured on the "In Review" life cycle state - not on the transition.

  • Nathan,

    I finally have it working thanks to you sending me that link. It has the following:

    • Lifecycle:

      • ${property_name}

        • Returns the defined property value from the current item associated with the current lifecycle

        • ex: ${item_number}