<h2>How to add new custom field to Transform and Compose section of Event Rule / How to popuate custom Alert field.</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Summary</h3><section><ul style="list-style-position: inside;"><li>By Default OOTB, we have some selective fields that are displayed under the Transpose and Compose section of Event Rule. </li><li>The Business Requirement here is to add some new fields to this section as below.</li></ul> <p style="padding-left: 80px;"><img style="border: 2px solid black; align: baseline;" src="sys_attachment.do?sys_id=bb227c05db0478d0fec4fb24399619f2" width="978" height="653" align="baseline" border="2" /></p> <ul style="list-style-position: inside;"><li>Currently, it displays only OOTB fields.</li></ul></section></div><div ><h3 >Instructions</h3><section><p style="padding-left: 40px;"><span style="font-size: 12pt;"><strong>Solution 1</strong></span></p> <ul style="list-style-position: inside;"><li>In order to display any custom field to this view, below steps needs to be followed:<br /><br /> <ul style="list-style-position: inside;"><li>Open "sys_db_object" table and locate "em_alert" table record. [Name Is em_alert]</li><li>Under Columns Tab > Click New</li><li>Enter the Field details that you would like to add and save the record. For example</li></ul> </li></ul> <p style="padding-left: 120px;">Table: Alert [em_alert]<br />Type: String<br />Column label: NR Custom<br />Column name: nr_custom<br />Max length: 240<br /></p> <ul style="list-style-position: inside;"><li style="list-style-type: none;"> <ul style="list-style-position: inside;"><li>This will create a new custom field on the Alert table.<br /></li></ul> </li><li>Now navigate to the Event rule and see if the new field is visible or not.</li></ul> <p style="padding-left: 80px;"><img style="border: 2px solid black; align: baseline;" src="sys_attachment.do?sys_id=f3227c05db0478d0fec4fb24399619f0" width="978" height="653" align="baseline" border="2" /></p> <p style="padding-left: 80px;"><br /></p> <p style="padding-left: 40px;"><span style="font-size: 12pt;"><strong>Solution 2</strong></span></p> <ul style="list-style-position: inside;"><li>Apart from the above approach, there is another way of populating a custom alert field. <br /><br />"Alert fields are automatically populated from fields that have the same name in the event. This behavior holds true for Additional information event fields and for Additional information fields that Event Rule adds. Thus to populate a custom alert field with the value in Additional information fields of alert, use the custom field name in the Additional information field of the event." Please refer to <a title="Custom Alert Fields" href="https://docs.servicenow.com/csh?topicname=populate-custom-alert-fields.html&version=latest" target="_blank" rel="noopener noreferrer nofollow">Custom Alert Fields </a>for more details. <br /><br /></li><li>Which means, if you are passing the custom field in the event payload and it will automatically get populated in the alert. Below is a sample Additional Information payload.<br />{<span style="background-color: #339966; color: #ffffff;">'nr_custom':'custom value'</span>,'hostname':'','networkNodeId':'1463','swEventId':'36479354','icon':'Start','netObjectId':'1463','NetObjectType':'N','eventType':'5001'}</li></ul></section></div><div ><h3 >Related Links</h3><section><ul style="list-style-position: inside;"><li>The important thing to notice here is, a new custom added field can be displayed under the "Transform and Compose Alert Output" section along with the selected/default OOTB fields. <span style="background-color: #ff0000; color: #ffffff;">Please note, some of the OOTB fields on em_alert table are not displayed here, this is by design.</span><br /></li><li>Apart from the above OOTB fields selected, the behavior of short_description field can be controlled using "<span style="text-decoration: underline; background-color: #ffffff; color: #000000;"><strong>evt_mgmt.override_alert_short_description</strong></span>". property.</li><li>The short description field of an alert is automatically written using the type, node, and description of the alert. To prevent the short description field from being over-written, the evt_mgmt.override_alert_short_description property value can be set to false.</li></ul> <p style="padding-left: 40px;">Additional document: <br /><a title="View alert information" href="https://docs.servicenow.com/csh?topicname=t_EMViewAlert.html&version=latest" target="_blank" rel="noopener noreferrer nofollow"><span style="font-size: 8pt;">View alert information</span></a></p> <div><br /></div></section></div></article></div>