<?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 Re: Need help with creating a script in flow designer, there is no step where script can be made? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259277#M1201150</link>
    <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/192750"&gt;@snow_beginner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create a custom flow action, accept 1 string as input and other input as table name, have output as count&lt;/P&gt;
&lt;P&gt;In that flow action, you can use script step and use GlideRecord and encoded query (use the condition passed as input), set the count as output variable&lt;/P&gt;
&lt;P&gt;you will have to use Lookup Records on that table and then call that flow action, then use IF logic to know the count and based on count 0 or more than o you can update that checkbox&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 13:13:21 GMT</pubDate>
    <dc:creator>Ankur Bawiskar</dc:creator>
    <dc:date>2025-05-09T13:13:21Z</dc:date>
    <item>
      <title>Need help with creating a script in flow designer, there is no step where script can be made?</title>
      <link>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259268#M1201146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have requirement to build a flow to basically monitor when an integration last worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my instance there is a platform integrations table, which recently has a new section added to it called monitoring. I have attached a ss of it below.&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="Pasted image.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/441091i830C3C804374BEED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pasted image.png" alt="Pasted image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What the flow is meant to do is go to this integrations table, and find all the integration records which are active=true and the table field is not empty and the conditions are not empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there it needs to go to the target table found in the table field above, apply the conditions mentioned above to the target table and if any records meet the condition then come back to the above table and tick the conditions met checkbox and update the conditions last met field with the current date/time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have so far is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 1) Trigger every 3 hours&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 2) action &amp;gt; Look up records &amp;gt; table: platform_integrations&lt;/P&gt;&lt;P&gt;conditions: active is true AND table is not empty AND conditions is not empty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 3) for each loop found in step 2...I don't know what to do here because there is no simple script step in my instance where I can add the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there is a toggle script for look up records, update record and create record actions, would that be something that's used here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because my understanding was that the toggle script for something like update record would only work on the fields of that record, it won't go to the target table, get relevant records and update the record in another table...or would it work like that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me on how I can do this. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:02:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259268#M1201146</guid>
      <dc:creator>snow_beginner</dc:creator>
      <dc:date>2025-05-09T13:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with creating a script in flow designer, there is no step where script can be made?</title>
      <link>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259277#M1201150</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/192750"&gt;@snow_beginner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create a custom flow action, accept 1 string as input and other input as table name, have output as count&lt;/P&gt;
&lt;P&gt;In that flow action, you can use script step and use GlideRecord and encoded query (use the condition passed as input), set the count as output variable&lt;/P&gt;
&lt;P&gt;you will have to use Lookup Records on that table and then call that flow action, then use IF logic to know the count and based on count 0 or more than o you can update that checkbox&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:13:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259277#M1201150</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-05-09T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with creating a script in flow designer, there is no step where script can be made?</title>
      <link>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259305#M1201155</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/192750"&gt;@snow_beginner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it worked for me in flow itself, no flow action required&lt;/P&gt;
&lt;P&gt;You need to use inline script in the Lookup Records condition field so that it picks conditions dynamically&lt;/P&gt;
&lt;P&gt;See below&lt;/P&gt;
&lt;P&gt;Please enhance it further to use IF logic to check the count and then Update the checkbox using "Update Record" flow action&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flow conditions (1).gif" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/441101i8D83FC5C80A450BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="flow conditions (1).gif" alt="flow conditions (1).gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:30:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259305#M1201155</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-05-09T13:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with creating a script in flow designer, there is no step where script can be made?</title>
      <link>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259349#M1201164</link>
      <description>&lt;P&gt;See the Duke (Uncle Rob)'s answer here. I was doing this just yesterday. Ankur is correct in that you need to create custom action and this should help you with the exact steps and help with understanding the input/outputs in the custom action where the script is performed.&lt;BR /&gt;&lt;A href="https://www.servicenow.com/community/developer-forum/how-to-write-a-scripted-custom-action-in-flow-designer/m-p/2652224/highlight/true#M1029386" target="_blank"&gt;https://www.servicenow.com/community/developer-forum/how-to-write-a-scripted-custom-action-in-flow-designer/m-p/2652224/highlight/true#M1029386&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 14:06:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259349#M1201164</guid>
      <dc:creator>qprinsloo</dc:creator>
      <dc:date>2025-05-09T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with creating a script in flow designer, there is no step where script can be made?</title>
      <link>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259843#M1201257</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/192750"&gt;@snow_beginner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 06:17:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3259843#M1201257</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-05-11T06:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with creating a script in flow designer, there is no step where script can be made?</title>
      <link>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3260441#M1201412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;thanks so much for the video demo. I have decided to use this approach after speaking to my senior dev and I think it will work well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 10:39:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/need-help-with-creating-a-script-in-flow-designer-there-is-no/m-p/3260441#M1201412</guid>
      <dc:creator>snow_beginner</dc:creator>
      <dc:date>2025-05-12T10:39:08Z</dc:date>
    </item>
  </channel>
</rss>

