<?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: Add starting zero to 5 digit numbers (when 6 digits are necessary) in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/add-starting-zero-to-5-digit-numbers-when-6-digits-are-necessary/m-p/2593#M1450</link>
    <description>&lt;P&gt;Perfect! Much appreciated. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Mar 2025 08:42:10 GMT</pubDate>
    <dc:creator>Gerard_Spijker</dc:creator>
    <dc:date>2025-03-10T08:42:10Z</dc:date>
    <item>
      <title>Add starting zero to 5 digit numbers (when 6 digits are necessary)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/add-starting-zero-to-5-digit-numbers-when-6-digits-are-necessary/m-p/2576#M1443</link>
      <description>&lt;P&gt;Dear community, I am looking for a formula to enforce for a field that six digits are in a field. When there are 5 digits, then a zero gets added at the front.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 07:37:19 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/add-starting-zero-to-5-digit-numbers-when-6-digits-are-necessary/m-p/2576#M1443</guid>
      <dc:creator>Gerard_Spijker</dc:creator>
      <dc:date>2025-03-05T07:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add starting zero to 5 digit numbers (when 6 digits are necessary)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/add-starting-zero-to-5-digit-numbers-when-6-digits-are-necessary/m-p/2577#M1444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/1709"&gt;@Gerard_Spijker&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out via the Validity Customer Community.&amp;nbsp; This could be accomplished in the Modify module using the Modify Action "Formula".&lt;/P&gt;
&lt;P&gt;Here is an example using the Account Object and modifying the Billing Zip Code.&amp;nbsp; You would replace the fields names in this formula with the field you're using.&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;IF(LEN(${BillingPostalCode})=5, "0" &amp;amp; ${BillingPostalCode}, ${BillingPostalCode})&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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="AnthonyValidity_0-1741186657394.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/703iED4668A2F68DEE61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnthonyValidity_0-1741186657394.png" alt="AnthonyValidity_0-1741186657394.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT color="#FF0000"&gt;IF(condition, value_if_true, value_if_false)&lt;/FONT&gt; - This is using an IF statement to make a decision based on a condition.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#FF0000"&gt;LEN(${BillingPostalCode})=5&lt;/FONT&gt; - The condition checks if the length of the billing postal code is exactly 5 characters.&lt;/LI&gt;
&lt;LI&gt;If the postal code is exactly 5 characters long, it adds a "0" in front of it: &lt;FONT color="#FF0000"&gt;"0" &amp;amp; ${BillingPostalCode}&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;If the postal code is NOT 5 characters long, it just uses the postal code as is: &lt;FONT color="#FF0000"&gt;${BillingPostalCode}&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 14:58:36 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/add-starting-zero-to-5-digit-numbers-when-6-digits-are-necessary/m-p/2577#M1444</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2025-03-05T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add starting zero to 5 digit numbers (when 6 digits are necessary)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/add-starting-zero-to-5-digit-numbers-when-6-digits-are-necessary/m-p/2593#M1450</link>
      <description>&lt;P&gt;Perfect! Much appreciated. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 08:42:10 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/add-starting-zero-to-5-digit-numbers-when-6-digits-are-necessary/m-p/2593#M1450</guid>
      <dc:creator>Gerard_Spijker</dc:creator>
      <dc:date>2025-03-10T08:42:10Z</dc:date>
    </item>
  </channel>
</rss>

