<?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 ARTICLE: Flow Designer Tips and Tricks in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/article-flow-designer-tips-and-tricks/m-p/2743648#M1057528</link>
    <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;1) Where Flow Designer can be used:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Flow - Inbound Email Action&lt;/LI&gt;&lt;LI&gt;Subflow &amp;nbsp;- Scripted Rest API&lt;/LI&gt;&lt;LI&gt;Flow - After / Async Business Rule&lt;/LI&gt;&lt;LI&gt;Flow / Subflow - Workflow replacement&lt;/LI&gt;&lt;LI&gt;Flow - Scheduled Job (up to certain extend)&lt;/LI&gt;&lt;LI&gt;Subflow - As a function on any Server- Side Script including Script Include&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;2) Replace Business Rule with Flow (Equivalent):&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;Run in Foreground == After BR&lt;BR /&gt;Run in Background == Async BR&lt;BR /&gt;Trigger Record Created == After BR on Insert&lt;/P&gt;&lt;P&gt;Trigger Record Updated == After BR on Update&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Many a times the After BR does not work even though the conditions are met, try changing it to Async BR OR use Flow it will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;3) Inbound Email Flow:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Flow should be created in a domain and the user who will be sending the email should also be in same domain. User creation in same domain is necessary with same email id from where email will be coming from.&lt;BR /&gt;To access Inbound action FD&lt;BR /&gt;fd_data.trigger.inbound_email.body_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To access Flow variables:&lt;/P&gt;&lt;P&gt;fd_data.flow_var.&amp;lt;variable_name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) If Flow is in different domain and you want to use a record(ex: group/user) of some other domain, then use inline script and return sys_id of the group/user of different domain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some Issues and how to fix it:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Error&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Cause&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Fix&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Flow is empty. Unable to compile the flow&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;When Flow Domain is changed manually in the sys_hub_flow table, and then trying to save and activate&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Copy the flow and then save and activate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 17:04:11 GMT</pubDate>
    <dc:creator>RiteshSwarnakar</dc:creator>
    <dc:date>2023-12-18T17:04:11Z</dc:date>
    <item>
      <title>ARTICLE: Flow Designer Tips and Tricks</title>
      <link>https://www.servicenow.com/community/developer-forum/article-flow-designer-tips-and-tricks/m-p/2743648#M1057528</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;1) Where Flow Designer can be used:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Flow - Inbound Email Action&lt;/LI&gt;&lt;LI&gt;Subflow &amp;nbsp;- Scripted Rest API&lt;/LI&gt;&lt;LI&gt;Flow - After / Async Business Rule&lt;/LI&gt;&lt;LI&gt;Flow / Subflow - Workflow replacement&lt;/LI&gt;&lt;LI&gt;Flow - Scheduled Job (up to certain extend)&lt;/LI&gt;&lt;LI&gt;Subflow - As a function on any Server- Side Script including Script Include&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;2) Replace Business Rule with Flow (Equivalent):&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;Run in Foreground == After BR&lt;BR /&gt;Run in Background == Async BR&lt;BR /&gt;Trigger Record Created == After BR on Insert&lt;/P&gt;&lt;P&gt;Trigger Record Updated == After BR on Update&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Many a times the After BR does not work even though the conditions are met, try changing it to Async BR OR use Flow it will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;3) Inbound Email Flow:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Flow should be created in a domain and the user who will be sending the email should also be in same domain. User creation in same domain is necessary with same email id from where email will be coming from.&lt;BR /&gt;To access Inbound action FD&lt;BR /&gt;fd_data.trigger.inbound_email.body_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To access Flow variables:&lt;/P&gt;&lt;P&gt;fd_data.flow_var.&amp;lt;variable_name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) If Flow is in different domain and you want to use a record(ex: group/user) of some other domain, then use inline script and return sys_id of the group/user of different domain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some Issues and how to fix it:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Error&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Cause&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Fix&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Flow is empty. Unable to compile the flow&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;When Flow Domain is changed manually in the sys_hub_flow table, and then trying to save and activate&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Copy the flow and then save and activate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 17:04:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/article-flow-designer-tips-and-tricks/m-p/2743648#M1057528</guid>
      <dc:creator>RiteshSwarnakar</dc:creator>
      <dc:date>2023-12-18T17:04:11Z</dc:date>
    </item>
  </channel>
</rss>

