<?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 SSN Normalization in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/636#M304</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has anyone written an SSN normalization function?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 18:37:54 GMT</pubDate>
    <dc:creator>Spedding</dc:creator>
    <dc:date>2023-03-28T18:37:54Z</dc:date>
    <item>
      <title>SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/636#M304</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has anyone written an SSN normalization function?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 18:37:54 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/636#M304</guid>
      <dc:creator>Spedding</dc:creator>
      <dc:date>2023-03-28T18:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/643#M311</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/117"&gt;@Spedding&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Happy to help where I can.&amp;nbsp; Do you mean to change this xxxxxxxxx to xxx-xx-xxxx?&amp;nbsp; If so, I wrote this for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;CONCATENATE(Left( ${Phone} , 3),"-",Mid_2( ${Phone}, 3,2),"-",Right( ${Phone} , 4))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was using the phone field to easily test the formula - just replace it with your field.&lt;/P&gt;
&lt;P&gt;Let me know if this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 19:39:47 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/643#M311</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-03-30T19:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/644#M312</link>
      <description>&lt;P&gt;Also, if you're just looking to identify malformed SSN, you can use this formula:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;RegExMatch(${Phone}, "^[0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9][0-9][0-9]$")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 19:51:35 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/644#M312</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-03-30T19:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/645#M313</link>
      <description>&lt;P&gt;Thank you!!!!&amp;nbsp; I will try it today.&amp;nbsp; Looks great!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:51:37 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/645#M313</guid>
      <dc:creator>Spedding</dc:creator>
      <dc:date>2023-03-31T12:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/647#M314</link>
      <description>&lt;P&gt;You're welcome!&amp;nbsp; It's my pleasure &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If this ends up working for you, please mark it as a solution so that other customers can easily find it.&amp;nbsp; Keep me posted!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:37:07 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/647#M314</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-03-31T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/649#M315</link>
      <description>&lt;P&gt;Hi Anthony.&amp;nbsp; The replacement value is being treated as a literal.&amp;nbsp; Am I missing something?&amp;nbsp; Below is a screenshot of the specification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spedding_0-1680272730834.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/177i43089B77FBCEF79A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Spedding_0-1680272730834.png" alt="Spedding_0-1680272730834.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:26:07 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/649#M315</guid>
      <dc:creator>Spedding</dc:creator>
      <dc:date>2023-03-31T14:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/651#M316</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/117"&gt;@Spedding&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You're using the "Specified Value" action.&amp;nbsp; You need to click the "Formula" action to enter the formula.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnthonyValidity_0-1680273319439.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/178i2FCBF5586AC188CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnthonyValidity_0-1680273319439.png" alt="AnthonyValidity_0-1680273319439.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:35:48 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/651#M316</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-03-31T14:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/655#M317</link>
      <description>&lt;P&gt;Oh my, LOL, I know that and have no idea what I was thinking.&amp;nbsp; Anyway, I corrected it and it's returning all blank values.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spedding_2-1680274122653.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/181i060D2B807814E07D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Spedding_2-1680274122653.png" alt="Spedding_2-1680274122653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;REDACTED SCREENSHOT&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:57:37 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/655#M317</guid>
      <dc:creator>Spedding</dc:creator>
      <dc:date>2023-03-31T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/656#M318</link>
      <description>&lt;P&gt;lol No worries, it happens to the best of us!&amp;nbsp; So for RegExMatch it only identifies the malformed values, but does not fix them.&amp;nbsp; You'll want to use the original formula I provided to fix those that have no dashes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;CONCATENATE(Left( ${Phone} , 3),"-",Mid_2( ${Phone}, 3,2),"-",Right( ${Phone} , 4))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, replace the phone field with your custom field.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 18:01:47 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/656#M318</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-03-31T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/664#M322</link>
      <description>&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;Sorry for just getting back to you.&amp;nbsp; I had a family emergency as was out of the office for a bit. Anyway, the following error is being given.&amp;nbsp; Have you seen it before?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;[2023-04-06 09:14:29.047] [error] [console] DTV Error! Something unexpected happened. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'RegExMatch(${TargetX_SRMb__SSN__c}') AND (TargetX_SRMb__SSN__c != '"^[0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9][0-9][0-9]$")'))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;^&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR at Row:1:Column:127&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Invalid string literal '"^[0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9][0-9][0-9]$")'. Illegal character sequence '\-' in string literal. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;A href="http://localhost:8080/5.24.1/js/main.js:2" target="_blank"&gt;http://localhost:8080/5.24.1/js/main.js:2&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 13:16:16 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/664#M322</guid>
      <dc:creator>Spedding</dc:creator>
      <dc:date>2023-04-06T13:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/665#M323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/117"&gt;@Spedding&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For the&amp;nbsp;&lt;SPAN&gt;RegExMatch formulas, I think you would do them on seperate lines if you want to evaluate two different fields.&amp;nbsp; I wouldn't combine them with an AND.&amp;nbsp; I'm really not sure where the second part came from as it looks like the same formula twice?&amp;nbsp; It should look like this.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;RegExMatch(${TargetX_SRMb__SSN__c}, "^[0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9][0-9][0-9]$")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This is how I would imagine your formula would look like in the Modify module under the action of Formula.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnthonyValidity_0-1680789745127.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/185iE7386076B8A82EA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnthonyValidity_0-1680789745127.png" alt="AnthonyValidity_0-1680789745127.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you're unable to use the formula, I think the next step would be to get a Support ticket open so they can work further with you.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:02:57 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/665#M323</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-04-06T14:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/667#M324</link>
      <description>&lt;P&gt;Thanks Anthony.&amp;nbsp; Below is the exact formula that I am using.&amp;nbsp; DemandTools changed it to an "and" statement as show in the log - not me.&amp;nbsp; Anyway, thanks again!&amp;nbsp; I will open a Support Ticket.&lt;/P&gt;&lt;P&gt;RegExMatch(${TargetX_SRMb__SSN__c}, "^[0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9][0-9][0-9]$")&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:09:06 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/667#M324</guid>
      <dc:creator>Spedding</dc:creator>
      <dc:date>2023-04-06T14:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: SSN Normalization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/668#M325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/117"&gt;@Spedding&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I thought that was a possibility.&amp;nbsp; Getting that error is strange only because it is working on my end with no issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad you're getting to Support so they can take a look for you!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:21:45 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/ssn-normalization/m-p/668#M325</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-04-06T14:21:45Z</dc:date>
    </item>
  </channel>
</rss>

