<?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>topic RE: Writing code stage to determine if recipients are from the domain in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Writing-code-stage-to-determine-if-recipients-are-from-the/m-p/77289#M29554</link>
    <description>For the sake of simplicity, you should not require a custom code stage to accomplish this. Instead, I'd recommend using the built-in expression editor with a decision or calculation stage. Some text functions that could work for your case are EndsWith, InStr, or even Right.&lt;BR /&gt;&lt;BR /&gt;Another option to consider is the Utility - Strings Text Regex Match action.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Patrick Aucoin&lt;BR /&gt;Senior Product Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Jul 2020 20:38:00 GMT</pubDate>
    <dc:creator>PatrickAucoin</dc:creator>
    <dc:date>2020-07-16T20:38:00Z</dc:date>
    <item>
      <title>Writing code stage to determine if recipients are from the domain</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-code-stage-to-determine-if-recipients-are-from-the/m-p/77288#M29553</link>
      <description>&lt;P&gt;I need to write a piece of code in the Code Stage in Blue Prism. I am dealing with Outlook and my current object can send out emails in Outlook.&lt;/P&gt;
&lt;P&gt;However, what I need to do now is to check if the email addresses in to/cc/bcc are from the same domain (eg. check if all recipients' email addresses end with "@abc.com"). My current piece of code is coded in C#. Does anyone have any idea on how this can be done?&lt;/P&gt;

--------------------------------------------------&lt;BR /&gt;

&lt;B&gt;Disclaimer:&lt;/B&gt; This content was auto-posted from Stackoverflow. The original Stackoverflow question is here &lt;A href="https://stackoverflow.com/questions/62927059/writing-code-stage-to-determine-if-recipients-are-from-the-domain"&gt;Stackoverflow Post&lt;/A&gt;, posted by &lt;A href="https://stackoverflow.com/users/10529102/jqy"&gt;jqy&lt;/A&gt;.</description>
      <pubDate>Thu, 16 Jul 2020 12:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-code-stage-to-determine-if-recipients-are-from-the/m-p/77288#M29553</guid>
      <dc:creator>Digital_WorkerB</dc:creator>
      <dc:date>2020-07-16T12:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Writing code stage to determine if recipients are from the domain</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-code-stage-to-determine-if-recipients-are-from-the/m-p/77289#M29554</link>
      <description>For the sake of simplicity, you should not require a custom code stage to accomplish this. Instead, I'd recommend using the built-in expression editor with a decision or calculation stage. Some text functions that could work for your case are EndsWith, InStr, or even Right.&lt;BR /&gt;&lt;BR /&gt;Another option to consider is the Utility - Strings Text Regex Match action.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Patrick Aucoin&lt;BR /&gt;Senior Product Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jul 2020 20:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-code-stage-to-determine-if-recipients-are-from-the/m-p/77289#M29554</guid>
      <dc:creator>PatrickAucoin</dc:creator>
      <dc:date>2020-07-16T20:38:00Z</dc:date>
    </item>
  </channel>
</rss>

