<?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 Setting from and reply to address based on email.to in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506512#M163438</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My organisation is a group of companies, the retails elements need to have different branding on their customer facing email notifications. I've got the incident updated etc notifications working dynamically so that, depending on customer or assignment group a different from and reply to address is set and a different logo is put in the signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm trying to do now is change the incident created for me notification. I'm trying to avoid creating a different notification for every retail company but the only other detail i can use is the address the email is sent to. i can script based on email.to in the advanced section of the when to send tab but email.to isn't available in the mail scripts used in the body of an email. Does anyone know of a way i can pass this information to a mail script or some other way i can identify which address the email was sent to in a mail script?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2017 14:54:35 GMT</pubDate>
    <dc:creator>Dubz</dc:creator>
    <dc:date>2017-12-20T14:54:35Z</dc:date>
    <item>
      <title>Setting from and reply to address based on email.to</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506512#M163438</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My organisation is a group of companies, the retails elements need to have different branding on their customer facing email notifications. I've got the incident updated etc notifications working dynamically so that, depending on customer or assignment group a different from and reply to address is set and a different logo is put in the signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm trying to do now is change the incident created for me notification. I'm trying to avoid creating a different notification for every retail company but the only other detail i can use is the address the email is sent to. i can script based on email.to in the advanced section of the when to send tab but email.to isn't available in the mail scripts used in the body of an email. Does anyone know of a way i can pass this information to a mail script or some other way i can identify which address the email was sent to in a mail script?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 14:54:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506512#M163438</guid>
      <dc:creator>Dubz</dc:creator>
      <dc:date>2017-12-20T14:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting from and reply to address based on email.to</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506513#M163439</link>
      <description>&lt;P&gt;If it's an email notification, you should be able to dot-walk to a field containing the "from" address (or to: address) and pop that in the form fields - so one notification can dynamically fetch the values at run-time.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;How you store the from/to fields against the record is going to be another matter, mind.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 14:57:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506513#M163439</guid>
      <dc:creator>Dave Smith1</dc:creator>
      <dc:date>2017-12-20T14:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting from and reply to address based on email.to</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506514#M163440</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks for the response. I have all the email addresses that raise tickets and the companies they're associated with stored in the custom table so accessing them isn't a problem. I actually just tested and realised i can do email.setFrom() from the advanced script condition on the 'when to send' tab, didn't realise i could do that I probably should have tested that before i resorted to the community! &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 15:49:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506514#M163440</guid>
      <dc:creator>Dubz</dc:creator>
      <dc:date>2017-12-20T15:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting from and reply to address based on email.to</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506515#M163441</link>
      <description>&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro" data-renderedposition="18_8_1040_41" modifiedtitle="true"&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;didn't realise i could do that I probably should have tested that before i resorted to the community!&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Ah, it happens! &amp;nbsp; Others will probably find this snippet useful when searching, so no problems with asking questions - glad to have been of help!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:58:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-from-and-reply-to-address-based-on-email-to/m-p/1506515#M163441</guid>
      <dc:creator>Dave Smith1</dc:creator>
      <dc:date>2017-12-20T16:58:42Z</dc:date>
    </item>
  </channel>
</rss>

