<?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>question FLOW Designer, conditons in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/flow-designer-conditons/m-p/3585019#M7666</link>
    <description>&lt;P&gt;Preciso criar um flow com condição de hora, exemplo: Se a reserva da sala for &amp;gt;10 OU após as 18h faça X coisa, porém o campo de condição só me retorna datapill, não consigo preencher o horario.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Aug 2026 14:52:39 GMT</pubDate>
    <dc:creator>conceicaog</dc:creator>
    <dc:date>2026-08-08T14:52:39Z</dc:date>
    <item>
      <title>FLOW Designer, conditons</title>
      <link>https://www.servicenow.com/community/community-central-forum/flow-designer-conditons/m-p/3585019#M7666</link>
      <description>&lt;P&gt;Preciso criar um flow com condição de hora, exemplo: Se a reserva da sala for &amp;gt;10 OU após as 18h faça X coisa, porém o campo de condição só me retorna datapill, não consigo preencher o horario.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2026 14:52:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/flow-designer-conditons/m-p/3585019#M7666</guid>
      <dc:creator>conceicaog</dc:creator>
      <dc:date>2026-08-08T14:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: FLOW Designer, conditons</title>
      <link>https://www.servicenow.com/community/community-central-forum/flow-designer-conditons/m-p/3585076#M7669</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/1150204"&gt;@conceicaog&lt;/a&gt;&amp;nbsp;, Please do a following:&lt;/P&gt;
&lt;P&gt;- Create a Flow Variable of type String (for example name it as &lt;STRONG&gt;is_after_6pm&lt;/STRONG&gt;). You can create flow variable from the three dot available on the top&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nishant8_0-1786255636941.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/525921i075BAFCB03A9483A/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/525921i075BAFCB03A9483A/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="Nishant8_0-1786255636941.png" alt="Nishant8_0-1786255636941.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- Create first step as 'Set Flow Variables' (select it from the Flow Logic) and use below script. To use script first click on the Toggle script option as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nishant8_1-1786256051028.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/525922i95AF10C899CD548D/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/525922i95AF10C899CD548D/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="Nishant8_1-1786256051028.png" alt="Nishant8_1-1786256051028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var now = new GlideDateTime();
var localDisplay = now.getDisplayValueInternal(); 
var timePart = localDisplay.split(' '); 
var currentHour = parseInt(timePart[1].split(':')[0], 10);

if (currentHour &amp;gt;= 18) {
    return "yes";
} else {
    return "no";
}&lt;/LI-CODE&gt;
&lt;P&gt;- Now, use this variable&amp;nbsp;&lt;STRONG&gt;is_after_6pm is yes&amp;nbsp;&lt;/STRONG&gt;in the time condition along with Reservation Count &amp;gt; 10&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nishant8_2-1786256284796.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/525923i5189C09683462D70/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/525923i5189C09683462D70/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="Nishant8_2-1786256284796.png" alt="Nishant8_2-1786256284796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should you need any further assistance, please let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nishant&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2026 06:20:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/flow-designer-conditons/m-p/3585076#M7669</guid>
      <dc:creator>Nishant8</dc:creator>
      <dc:date>2026-08-09T06:20:58Z</dc:date>
    </item>
  </channel>
</rss>

