<?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: Generating a 6-digit random code in Workato in Community Chat</title>
    <link>https://systematic.workato.com/t5/community-chat/generating-a-6-digit-random-code-in-workato/m-p/12131#M1227</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/13246"&gt;@shaked&lt;/a&gt;,&lt;BR /&gt;I believe there is no way to generate a code with any FORMULA, we need to go with any scripting (Python, Ruby, JS). Please check the below output which i got from Python code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-04-29 064600.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2663i66247FE75F73E54D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-04-29 064600.png" alt="Screenshot 2026-04-29 064600.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-04-29 065114.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2662i1EE6C65AD09954FB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-04-29 065114.png" alt="Screenshot 2026-04-29 065114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import random

def main(input):
  otp = random.randint(100000, 999999)
  return {"otp": otp}&lt;/LI-CODE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thanks,&lt;BR /&gt;J Rajesh Kumar.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2026 01:24:13 GMT</pubDate>
    <dc:creator>rajeshjanapati</dc:creator>
    <dc:date>2026-04-29T01:24:13Z</dc:date>
    <item>
      <title>Generating a 6-digit random code in Workato</title>
      <link>https://systematic.workato.com/t5/community-chat/generating-a-6-digit-random-code-in-workato/m-p/12119#M1225</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I need to generate a random 6-digit code (OTP style) in a recipe.&lt;/P&gt;&lt;P&gt;Is there a way to do this using a Workato formula?&lt;BR /&gt;If not, what is the recommended/best practice way to implement it?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 10:44:29 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/generating-a-6-digit-random-code-in-workato/m-p/12119#M1225</guid>
      <dc:creator>shaked</dc:creator>
      <dc:date>2026-04-27T10:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a 6-digit random code in Workato</title>
      <link>https://systematic.workato.com/t5/community-chat/generating-a-6-digit-random-code-in-workato/m-p/12131#M1227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/13246"&gt;@shaked&lt;/a&gt;,&lt;BR /&gt;I believe there is no way to generate a code with any FORMULA, we need to go with any scripting (Python, Ruby, JS). Please check the below output which i got from Python code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-04-29 064600.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2663i66247FE75F73E54D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-04-29 064600.png" alt="Screenshot 2026-04-29 064600.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-04-29 065114.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2662i1EE6C65AD09954FB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-04-29 065114.png" alt="Screenshot 2026-04-29 065114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import random

def main(input):
  otp = random.randint(100000, 999999)
  return {"otp": otp}&lt;/LI-CODE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thanks,&lt;BR /&gt;J Rajesh Kumar.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 01:24:13 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/generating-a-6-digit-random-code-in-workato/m-p/12131#M1227</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2026-04-29T01:24:13Z</dc:date>
    </item>
  </channel>
</rss>

