<?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 Process flow states change dynamically in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/process-flow-states-change-dynamically/m-p/3320822#M543738</link>
    <description>&lt;P&gt;I have a requirement to change the process flow states appear based on type. If type = test then show draft, approved, closed. else Draft, Initiated, Closed. How can I get this working? I can hide unhide the states in the state drop down but the process flow on the top doesnt change.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jul 2025 04:48:47 GMT</pubDate>
    <dc:creator>samadam</dc:creator>
    <dc:date>2025-07-15T04:48:47Z</dc:date>
    <item>
      <title>Process flow states change dynamically</title>
      <link>https://www.servicenow.com/community/itsm-forum/process-flow-states-change-dynamically/m-p/3320822#M543738</link>
      <description>&lt;P&gt;I have a requirement to change the process flow states appear based on type. If type = test then show draft, approved, closed. else Draft, Initiated, Closed. How can I get this working? I can hide unhide the states in the state drop down but the process flow on the top doesnt change.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 04:48:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/process-flow-states-change-dynamically/m-p/3320822#M543738</guid>
      <dc:creator>samadam</dc:creator>
      <dc:date>2025-07-15T04:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Process flow states change dynamically</title>
      <link>https://www.servicenow.com/community/itsm-forum/process-flow-states-change-dynamically/m-p/3320828#M543739</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/65542"&gt;@samadam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can show them based on condition you configure.&lt;/P&gt;
&lt;P&gt;If you don't want to use that then you need to use onLoad client script and DOM manipulation to handle that.&lt;/P&gt;
&lt;P&gt;I shared solution for this earlier, please enhance&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.servicenow.com/community/spm-forum/hide-and-show-process-flow-based-on-the-category/m-p/976249/page/1" target="_blank" rel="noopener"&gt;Hide and show process flow based on the category.&lt;/A&gt;&amp;nbsp;&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>Tue, 15 Jul 2025 05:00:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/process-flow-states-change-dynamically/m-p/3320828#M543739</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-07-15T05:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Process flow states change dynamically</title>
      <link>https://www.servicenow.com/community/itsm-forum/process-flow-states-change-dynamically/m-p/3320829#M543740</link>
      <description>&lt;P&gt;To dynamically change the &lt;STRONG&gt;process flow formatter&lt;/STRONG&gt; stages based on the value of a field like type, you'll need to configure conditional logic within the &lt;STRONG&gt;Flow Formatter [sys_process_flow]&lt;/STRONG&gt; records themselves. Here's how you can approach it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Create a list collector variable (choose_assgn_grp) on the catalog item form referencing the Groups (sys_user_group) table and allow multiple selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Use Flow Designer to create a flow that triggers when a catalog request is submitted.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Within the flow, add a &lt;STRONG&gt;For Each&lt;/STRONG&gt; loop to iterate over the selected groups in the choose_assgn_grp variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;For every group in the loop, use the &lt;STRONG&gt;Create Catalog Task&lt;/STRONG&gt; action and dynamically set the Assignment Group field to the current group.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Customize the task details (such as short description and instructions) for clarity and tracking.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Publish the flow and test by submitting a request with one or more groups selected to ensure the correct number of tasks are created and assigned appropriately.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Use client-side logic or scripting if needed to enhance form behavior or manage complex variable conditions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 05:01:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/process-flow-states-change-dynamically/m-p/3320829#M543740</guid>
      <dc:creator>kalpanashar</dc:creator>
      <dc:date>2025-07-15T05:01:42Z</dc:date>
    </item>
  </channel>
</rss>

