<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Inbound Action Script in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005305#M86268</link>
    <description>&lt;P&gt;I have a similar issue to Nick's. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Here is my script:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14528062468097485" data-renderedposition="87.99715423583984_7.997159004211426_1192_495" jivemacro_uid="_14528062468097485"&gt;&lt;P&gt;if (email.importance != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; if (email.importance.toLowerCase() == "high")&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.priority = 1;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.priority != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; current.priority = email.body.priority;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.category != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.category = email.body.category;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.sub != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.subcategory = email.body.sub;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.desc != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.work_notes = email.body.desc;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.impact != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.impact = email.body.impact;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.urgency != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.urgency = email.body.urgency;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.group != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.assignment_group = email.body.group;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.assignee != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.assigned_to = email.body.assignee;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.insert();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;event.state="stop_processing";&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Email is: &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro" data-renderedposition="632.5426025390625_7.997159004211426_1192_278"&gt;&lt;P&gt;&lt;STRONG&gt;Subject: [whatever you want it to be]&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Content:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: black;"&gt; Requestor: Joe User&lt;BR /&gt; Category: Infrastructure&lt;BR /&gt; Sub: Network&lt;BR /&gt; Impact: 1&lt;BR /&gt; Urgency: 1&lt;BR /&gt; Group: Infrastructure&lt;BR /&gt; Assignee: Joleen Technician&lt;BR /&gt; Desc: Critical: node down triggered for Seattle 20th floor Switch 4&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: black;"&gt;I can get the script to interpret/populate everything but the Assignment Group. &amp;nbsp; Not sure why I can't get that to work...I've looked at assignment rules, dictionary, field settings, business rules. &amp;nbsp; Anybody have an idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Jan 2016 21:13:51 GMT</pubDate>
    <dc:creator>ewanh</dc:creator>
    <dc:date>2016-01-14T21:13:51Z</dc:date>
    <item>
      <title>Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005296#M86259</link>
      <description>&lt;P&gt;Using Eureka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to craft an inbound action script to scrub the body of an inbound email and create an incident with the desired fields populated and routed to the appropriate groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the inbound email; body starts on line 6:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14467472227379117 jive_macro_code jive_text_macro" data-renderedposition="134_8_1192_288" jivemacro_uid="_14467472227379117"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;STRONG&gt;From:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; Reports Issues [&lt;A title="reports@gmail.com" href="mailto:tureports@gmail.com"&gt;mailto:contoso@contoso.com&lt;/A&gt;] &lt;BR /&gt; &lt;STRONG&gt;Sent:&lt;/STRONG&gt; Wednesday, October 28, 2015 12:43 PM&lt;BR /&gt; &lt;STRONG&gt;To:&lt;/STRONG&gt; &amp;lt;&lt;A title="itzma@tulane.edu" href="mailto:szitzma@tulane.edu"&gt;person@contoso.com&lt;/A&gt;&lt;BR /&gt; &lt;STRONG&gt;Subject:&lt;/STRONG&gt; Import Banner Issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IssueId&lt;/STRONG&gt;: 4221&lt;BR /&gt;&lt;STRONG&gt;Priority&lt;/STRONG&gt;: 3 - Moderate&lt;BR /&gt;&lt;STRONG&gt;State&lt;/STRONG&gt;: Work In Progress&lt;BR /&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;: Banner&lt;BR /&gt;&lt;STRONG&gt;ConfigurationItem&lt;/STRONG&gt;: Banner&lt;BR /&gt;&lt;STRONG&gt;AssignmentGroup&lt;/STRONG&gt;: Banner Financial Aid&lt;BR /&gt;&lt;STRONG&gt;AssignedTo&lt;/STRONG&gt;: Person Assigned&lt;BR /&gt;&lt;STRONG&gt;AssignedToEmail&lt;/STRONG&gt;: &lt;A title="nha@tulane.edu" href="mailto:vanha@tulane.edu"&gt;person1@contoso.com&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;IssueOwner&lt;/STRONG&gt;: Tess Passey&lt;BR /&gt;&lt;STRONG&gt;IssueOwnerEmail&lt;/STRONG&gt;: &lt;A title="assey@tulane.edu" href="mailto:tpassey@tulane.edu"&gt;person2@contoso.com&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;ShortDescription&lt;/STRONG&gt;: Self-service - implement Web Snapshot&lt;BR /&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;: want to look into implementing Web Snapshot. should be a part of FA Self-Service release 8.12.&lt;BR /&gt;&lt;STRONG&gt;DateCreated&lt;/STRONG&gt;: 01/06/2012&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the inbound action I have created thus far, but I don't think I am &lt;A title="ki.servicenow.com/?title=Inbound_Email_Actions#Setting_Field_Values_from_the_Email_Body" href="http://wiki.servicenow.com/?title=Inbound_Email_Actions#Setting_Field_Values_from_the_Email_Body"&gt;interpreting the wiki info to route these correctly&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14467473786987599 jive_text_macro" data-renderedposition="527_8_1192_362" jivemacro_uid="_14467473786987599"&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;current.comments = "received from: " + email.origemail + "\n\n" + email.body_text;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;current.short_description = email.subject;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;current.incident_state = 1;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;current.notify = 2;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;current.contact_type = "email";&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;current.caller_id = gs.getUserID();&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;if(email.body.configurationitem != undefined) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt; current.tsnoc &amp;nbsp; = email.body.configurationitem; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;if(email.body.assignmentgroup != undefined) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt; current.d7bc71eec5a2c900fadf7cf8915b2ea0 = email.body.assignmentgroup; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;if(email.body.assignedto != undefined) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt; current.d4dece082b9501001e1c5dd417da15e1 = email.body.assignedto; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;current.insert();&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Calibri Light',sans-serif;"&gt;event.state="stop_processing";&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have some basic IA's working, but those do not get much more detailed than the basics:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current.comments = "received from: " + email.origemail + "\n\n" + email.body_text;&lt;/P&gt;&lt;P&gt;current.short_description = email.subject;&lt;/P&gt;&lt;P&gt;current.incident_state = 1;&lt;/P&gt;&lt;P&gt;current.notify = 2;&lt;/P&gt;&lt;P&gt;current.contact_type = "email";&lt;/P&gt;&lt;P&gt;current.caller_id = gs.getUserID();&lt;/P&gt;&lt;P&gt;current.assignment_group = 'f8657087492ab1001e1ca684059595bc';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current.insert();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;event.state="stop_processing";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 'if' statements, they are not reading properly and thus not designating the appropriate fields in a new incident. Any insight is appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 18:27:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005296#M86259</guid>
      <dc:creator>nickskaggs</dc:creator>
      <dc:date>2015-11-05T18:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005297#M86260</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;It looks to me like your field mappings are off a bit. &amp;nbsp; For example, you have:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; if(email.body.assignedto != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.sys_id = email.body.assignedto;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In a normal instance of SN, the actual field for assigned to is: &amp;nbsp; assigned_to&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (email.body.assign != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.assigned_to = email.body.assign;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In a normal instance of SN, the actual field for configurationitem is: &amp;nbsp; cmdb_ci&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I would suggest checking the Incident form to get the exact (correct) field names for all of the items you are attempting to populate and update your script with the correct field names. &amp;nbsp; The field names must be exactly correct or they won't populate correctly.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Nov 2015 23:57:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005297#M86260</guid>
      <dc:creator>cfam1</dc:creator>
      <dc:date>2015-11-05T23:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005298#M86261</link>
      <description>&lt;P&gt;Thanks, Chandra. I will give that a look and come back with results. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 12:43:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005298#M86261</guid>
      <dc:creator>nickskaggs</dc:creator>
      <dc:date>2015-11-06T12:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005299#M86262</link>
      <description>&lt;P&gt;I think I found my problem. All the fields I want SN to populate from the inbound email are reference fields in the incident form. This functionality is not possible on ref fields.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 21:12:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005299#M86262</guid>
      <dc:creator>nickskaggs</dc:creator>
      <dc:date>2015-11-06T21:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005300#M86263</link>
      <description>&lt;P&gt;Not sure I understand your comment because I have populated many ref fields such as Assignment Group, Assigned To even the Watchlist field using inbound actions. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 21:19:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005300#M86263</guid>
      <dc:creator>cfam1</dc:creator>
      <dc:date>2015-11-06T21:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005301#M86264</link>
      <description>&lt;P&gt;I am wondering if &lt;A title="" _jive_internal="true" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=961947e1db5cdbc01dcaf3231f961974"&gt;this is the issue&lt;/A&gt;. Makes it look like the inbound email must be in plain text from the source.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Will try it later.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 23:18:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005301#M86264</guid>
      <dc:creator>nickskaggs</dc:creator>
      <dc:date>2015-11-06T23:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005302#M86265</link>
      <description>&lt;P&gt;After sending a number of test emails, tinkering here and there, I finally got on the right track. Going back to your response about getting the proper syntax relative to the way our incident table is set up helped.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I found for some form reference fields, I had to use the sys_id for it to parse properly in the incident form; pulling the name from the sending email would not parse for some reason. I suppose each SN instance is unique!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I misled myself by misinterpreting the statement in the wiki as well as the other SN community thread about the inbound email needing to be plain text ( though I am sending these test emails as plain text ).&lt;/P&gt;&lt;BR /&gt;&lt;P class="floatleft" style="margin: 0 0.5em 0.5em 0;"&gt;&lt;A class="image" href="http://wiki.servicenow.com/index.php?title=File:Warning.gif" style="color: #031da7;" title="Note"&gt;&lt;IMG alt="Note" class="jive-image" height="16" src="http://wiki.servicenow.com/images/thumb/c/c2/Warning.gif/16px-Warning.gif.png" width="16" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;The action always generates a lowercase variable name. &lt;STRONG&gt;Note also that this functionality does not work on reference fields&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Anyways, this is what I have the current inbound email body set as and parsing properly in incident fields, reference type or free text:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt;room:501&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt;assignedto:Nicholas Skaggs&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;configitem:&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;092dd92f09b405001e1cfb30101933&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;5a&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;assigngroup:&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;d7bc71eec5a2c900fadf7cf8915b2e&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;a0&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt;IssueOwner:Nicholas Skaggs&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt;ShortDescription:Self-service - implement Web Snapshot&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;And this is the IA script:&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14472502973312838 jive_text_macro" data-renderedposition="601_8_1192_416" jivemacro_uid="_14472502973312838"&gt;&lt;P&gt;current.comments = "received from: " + email.origemail + "\n\n" + email.body_text;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.incident_state = 1;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.notify = 2;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.contact_type = "email";&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.shortdescription != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.short_description = email.body.shortdescription;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.room != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.u_room = email.body.room;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.assignedto != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.assigned_to = email.body.assignedto;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.configitem != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.cmdb_ci = email.body.configitem;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.assigngroup != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.assignment_group = email.body.assigngroup;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.issueowner != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.caller_id = email.body.issueowner;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.insert();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;event.state="stop_processing";&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Nov 2015 14:02:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005302#M86265</guid>
      <dc:creator>nickskaggs</dc:creator>
      <dc:date>2015-11-11T14:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005303#M86266</link>
      <description>&lt;P&gt;you can try something like&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.assigned_to.setDisplayValue(email.body.assignedto); &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;That should set the value based on the name. &amp;nbsp; The problem there is that the first John Smith in the list will be the assigned_to value.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;-Chris&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2015 02:23:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005303#M86266</guid>
      <dc:creator>cwilkerbb</dc:creator>
      <dc:date>2015-11-12T02:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005304#M86267</link>
      <description>&lt;P&gt;Thanks, Chris&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This was also helpful. Allowed me to use the names instead of sys_ids.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2015 15:54:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005304#M86267</guid>
      <dc:creator>nickskaggs</dc:creator>
      <dc:date>2015-11-12T15:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005305#M86268</link>
      <description>&lt;P&gt;I have a similar issue to Nick's. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Here is my script:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14528062468097485" data-renderedposition="87.99715423583984_7.997159004211426_1192_495" jivemacro_uid="_14528062468097485"&gt;&lt;P&gt;if (email.importance != undefined) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; if (email.importance.toLowerCase() == "high")&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.priority = 1;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.priority != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; current.priority = email.body.priority;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.category != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.category = email.body.category;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.sub != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.subcategory = email.body.sub;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.desc != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.work_notes = email.body.desc;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.impact != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.impact = email.body.impact;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.urgency != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.urgency = email.body.urgency;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.group != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.assignment_group = email.body.group;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (email.body.assignee != undefined)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; current.assigned_to = email.body.assignee;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.insert();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;event.state="stop_processing";&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Email is: &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro" data-renderedposition="632.5426025390625_7.997159004211426_1192_278"&gt;&lt;P&gt;&lt;STRONG&gt;Subject: [whatever you want it to be]&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Content:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: black;"&gt; Requestor: Joe User&lt;BR /&gt; Category: Infrastructure&lt;BR /&gt; Sub: Network&lt;BR /&gt; Impact: 1&lt;BR /&gt; Urgency: 1&lt;BR /&gt; Group: Infrastructure&lt;BR /&gt; Assignee: Joleen Technician&lt;BR /&gt; Desc: Critical: node down triggered for Seattle 20th floor Switch 4&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: black;"&gt;I can get the script to interpret/populate everything but the Assignment Group. &amp;nbsp; Not sure why I can't get that to work...I've looked at assignment rules, dictionary, field settings, business rules. &amp;nbsp; Anybody have an idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2016 21:13:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005305#M86268</guid>
      <dc:creator>ewanh</dc:creator>
      <dc:date>2016-01-14T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005306#M86269</link>
      <description>&lt;P&gt;Hi Ewan,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Did you use Chris' suggestion to use current.assignment_group.setDisplayValue() rather than direct assignment? Given that the inbound value for assignment group int hat email is "Infrastructure" rather than they sys_id of the Infrastructure group, you can't use direct assignment (reference fields have a value- a sys_id, and a display value- like a name). Since you're getting the name in your email, you need to either try setting that (and let the system look up an appropriate sys_id for a group with that name), or explicitly do the query yourself, find the right group, and assign it's sys_id to current.assignment_group.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2016 22:01:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005306#M86269</guid>
      <dc:creator>coryseering</dc:creator>
      <dc:date>2016-01-14T22:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005307#M86270</link>
      <description>&lt;P&gt;That was it! &amp;nbsp; Thanks Cory.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2016 23:33:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005307#M86270</guid>
      <dc:creator>ewanh</dc:creator>
      <dc:date>2016-01-14T23:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound Action Script</title>
      <link>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005308#M86271</link>
      <description>&lt;P&gt;Hi Ewan,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I've been tinkering with an IA similar to this and found the following useful: current.caller_id = getUser("Jane.Doe");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The requirement I had was to assign the caller ID field to always insert a user's name. In this case, a Cognos report would send an email to Servicenow and our settings would create the incident with 'guest' as the caller ID. We found a way to accept the email, but have the IA assigned Jane Doe as the caller ID and not guest.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;To make it work fully, a function needed to be added at the end of the IA script to make it work:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function getUser(u_name)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var a=new GlideRecord("sys_user");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;a.addQuery("user_name",u_name);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;a.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(a.next()){&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;return a.sys_id;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:26:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/inbound-action-script/m-p/1005308#M86271</guid>
      <dc:creator>Lola B</dc:creator>
      <dc:date>2017-02-07T17:26:07Z</dc:date>
    </item>
  </channel>
</rss>

