<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/discussions/f/data/35114/how-to-parse-field-to-extract-email-address-and-display-mailto-link</link><description>I am working in my record type display interface. 
 One of the fields in our data contains an email address with the name of the person in this format: 
 Bilbo Baggins &amp;lt;Bilbo.Baggins@TheShire.org&amp;gt; 
 I need to extract the string between the &amp;lt; &amp;gt; and display</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136527?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 17:53:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:015fc4f8-0ae3-4f95-90ce-6d9b8b5684c7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;yeah, i got the same result (posted earlier), so who knows i guess?&amp;nbsp; it&amp;#39;d be interesting if there was some issue being caused by trying to use it in the record list configuration (though i don&amp;#39;t know why it would do that).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136526?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 17:14:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9a9f5b6-551f-4201-a8ed-c93db584ed88</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717694088423v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136524?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 17:06:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f32b94a7-a671-4b21-9200-5971b0399eaa</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="274702" url="~/discussions/f/data/35114/how-to-parse-field-to-extract-email-address-and-display-mailto-link/136523"]there are no &amp;quot;//&amp;quot; in a valid mailto link[/quote]
&lt;p&gt;maybe his environment has some setting which disables regular mailto links via some heuristic, and adding the &amp;quot;//&amp;quot; accidentally defeats it?&amp;nbsp; &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f613.svg" title="Sweat"&gt;&amp;#x1f613;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;that&amp;#39;s why i was trying to see whether the generic code pasted into a blank interface would produce the same issue...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136523?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 17:03:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e6b7361-bb3c-4085-8085-ee6e637ef759</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;According to this&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://www.w3docs.com/snippets/html/how-to-create-mailto-links.html"&gt;https://www.w3docs.com/snippets/html/how-to-create-mailto-links.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;there are no &amp;quot;//&amp;quot; in a valid mailto link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136522?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:59:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d3325f0-cbac-42a9-ae16-259f17080fb3</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;weird, it actually works for me when i try it either way.&lt;/p&gt;
[quote userid="261749" url="~/discussions/f/data/35114/how-to-parse-field-to-extract-email-address-and-display-mailto-link/136521"]needed to be mailto://&amp;nbsp;[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136521?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:58:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa033ad6-39cb-4dfe-a84b-2c1e556b2dff</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;mailto: -- needed to be mailto://&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;All set! Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136519?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:41:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:753c01d4-d61f-4f84-9310-bff9fdb21d63</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Works in my CE site (and in the shared beta site).&amp;nbsp; If you just make a new unsaved interface with this code do you still get the same error?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717692081362v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136517?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:40:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:790a3336-cd7b-4d34-86de-c45ccb82e295</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;&lt;span&gt; a!safeLink [line 81]: mailto: is not a permitted URI under the configured security rules and cannot be cast to safeUri.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136515?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:36:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56bdbd28-655d-4343-ad2b-ec6092bfdb0a</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;Yes, I caught that typo and fixed it, but still receive that error message. Strangley though it didn&amp;#39;t give me the error when it was first implemented...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136508?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:10:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3455829-0fd7-41d2-af38-71108b7d29c9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;do you still get that error if you add the (required) &amp;quot;:&amp;quot; after &amp;quot;mailto&amp;quot;?&lt;/p&gt;
&lt;p&gt;ed: i don&amp;#39;t get the error in my CE site...&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717691179663v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136507?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:07:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76021275-b1d6-4577-a0b1-921806e9d8a7</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;Bah! Most likely because I&amp;#39;m using the unpaid community edition...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136505?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 16:03:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17f8b145-770b-4e94-a01e-66efb8f573b9</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;&lt;span style="background-color:#f58484;font-size:150%;"&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;The Requested Record Type Is Not Available&lt;/strong&gt; Expression evaluation error [evaluation ID = 6CT8A] at function a!recordList: A grid component [label="null"] has an invalid value for &amp;quot;columns&amp;quot;. A grid column [label="Technical Contact"] has encountered an error. Expression evaluation error at function a!safeLink [line 94]: mailto: is not a permitted URI under the configured security rules and cannot be cast to safeUri. (APNX-1-4198-000)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136502?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:56:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:684ee9e2-1dd4-44bb-8578-2ba951bf4252</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="typescript"&gt;a!richTextDisplayField(
  value: a!richTextItem(
    text: a!localVariables(
      local!fullString: fv!row[&amp;#39;recordType!{a7958e69-8bde-42a9-a773-23e5104be70a}HAP Application.fields.{f3a77ebb-d7b9-4ec4-bd04-674ed104e96e}technicalPointOfContact&amp;#39;],
      extract(
        &amp;quot;--beginning--&amp;quot; &amp;amp; local!fullString,
        &amp;quot;g--&amp;quot;,
        &amp;quot; &amp;lt;&amp;quot;
      )
    ),
    link: a!safeLink(
      uri: &amp;quot;mailto://&amp;quot; &amp;amp; extract(fv!row[&amp;#39;recordType!{a7958e69-8bde-42a9-a773-23e5104be70a}HAP Application.fields.{f3a77ebb-d7b9-4ec4-bd04-674ed104e96e}technicalPointOfContact&amp;#39;], &amp;quot;&amp;lt;&amp;quot;,&amp;quot;&amp;gt;&amp;quot;)
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136499?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:46:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:029317ac-7f7f-4223-84bd-e489b639b123</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;don&amp;#39;t use split() for this.&amp;nbsp; See my and Stefan&amp;#39;s other replies above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136497?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:45:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b62845df-3e9c-4ef1-a836-2d6d02abdab6</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717688686906v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;How do I get just the 1st element of a split?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136493?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:42:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf96a6e6-c727-4143-9491-5b04cdff0ec6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Magic Mike! A great trick!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136492?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:40:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a6e0617-9d74-4ec3-bc6d-80da71e91dae</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;mid() seems like a reasonable approach - my old trick, though, when wanting a more carefully guided &amp;quot;extract&amp;quot;, is to prepend a special delimiter string (something unlikely/impossible to ever appear in the actual string itself) --&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717688411498v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136489?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:37:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:129bed58-523f-468f-acfc-1d7b6db5768f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&amp;gt; extract(&amp;quot;Bilbo Baggins &amp;lt;Bilbo.Baggins@TheShire.org&amp;gt;&amp;quot;, &amp;quot; &amp;quot;, &amp;quot;&amp;lt;&amp;quot;),&lt;/p&gt;
&lt;p&gt;By my math, that would evaluate to a text value of &amp;quot;Baggins &amp;quot; - is that the intent?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717688226743v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(i guess it doubles it based on the fact that there are 2 copies of the &amp;quot;start delimiter&amp;quot; i.e. a blank space)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136488?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:35:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:911aa901-fa07-409e-8192-42d685c5f6e5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry, the &amp;quot;Bilbo&amp;quot; looks so similar to &amp;quot;Baggins&amp;quot; so that I missed this&amp;nbsp;...&lt;/p&gt;
&lt;p&gt;I changed the code a bit:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!email: &amp;quot;Bilbo Baggins &amp;lt;Bilbo.Baggins@TheShire.org&amp;gt;&amp;quot;,
  a!richTextDisplayField(
    value: a!richTextItem(
      text: mid(local!email, 1, find(&amp;quot; &amp;lt;&amp;quot;, local!email)),
      link: a!safeLink(
        uri: &amp;quot;mailto:&amp;quot; &amp;amp; extract(local!email, &amp;quot;&amp;lt;&amp;quot;, &amp;quot;&amp;gt;&amp;quot;)
      )   
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717688100355v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136487?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:24:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25281a07-52ae-4ff6-9625-fa16686b44cf</guid><dc:creator>Scott Fleming</dc:creator><description>&lt;p&gt;First, thank you for your help!&lt;/p&gt;
&lt;p&gt;The mailto:link is returning correctly, but the display name is not showing the string to the left of the &amp;quot;&amp;lt;&amp;quot;&amp;nbsp; properly.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Joseph Nault &amp;lt;Joseph.Nault@tn.gov&amp;gt; ---&amp;gt; link displays as &amp;quot;Nault Nault&amp;quot;..&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the code:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717686997584v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Screenshot of the result&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1717686932829v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136069?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 19:00:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e338d302-c42d-4962-8519-a6fbd4e943e6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/24.1/fnc_text_extract.html"&gt;docs.appian.com/.../fnc_text_extract.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse field to extract email address and display mailto link</title><link>https://community.appian.com/thread/136064?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 18:29:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c325f6d5-3879-46e3-a781-37cb56e41644</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!richTextDisplayField(
  value: a!richTextItem(
    text: extract(&amp;quot;Bilbo Baggins &amp;lt;Bilbo.Baggins@TheShire.org&amp;gt;&amp;quot;, &amp;quot; &amp;quot;, &amp;quot;&amp;lt;&amp;quot;),
    link: a!safeLink(
      uri: &amp;quot;mailto:&amp;quot; &amp;amp; extract(&amp;quot;Bilbo Baggins &amp;lt;Bilbo.Baggins@TheShire.org&amp;gt;&amp;quot;, &amp;quot;&amp;lt;&amp;quot;, &amp;quot;&amp;gt;&amp;quot;)
    )   
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>