<?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: Wait for addtional comments to be updated in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/wait-for-addtional-comments-to-be-updated/m-p/3411340#M1234261</link>
    <description>&lt;P&gt;Thanks Muhammad, was not too sure how API message can be sent, so this approach of sending it via business rule seems to be the only option.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Oct 2025 13:27:39 GMT</pubDate>
    <dc:creator>Lowestoft</dc:creator>
    <dc:date>2025-10-23T13:27:39Z</dc:date>
    <item>
      <title>Wait for addtional comments to be updated</title>
      <link>https://www.servicenow.com/community/developer-forum/wait-for-addtional-comments-to-be-updated/m-p/3410479#M1234128</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a Flow on a catalog item, i want flow to move forward when an additional comment is added to the RITM.&lt;/P&gt;&lt;P&gt;but when i use the wait for condition, i cannot select comments/additional comments as a field, or any other journal field.&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="Screenshot 2025-10-22 161415.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478239iBAAB82CC9583BA61/image-size/large?v=v2&amp;amp;px=999" alt="Screenshot 2025-10-22 161415.png" title="Screenshot 2025-10-22 161415.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 15:14:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/wait-for-addtional-comments-to-be-updated/m-p/3410479#M1234128</guid>
      <dc:creator>Lowestoft</dc:creator>
      <dc:date>2025-10-22T15:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for addtional comments to be updated</title>
      <link>https://www.servicenow.com/community/developer-forum/wait-for-addtional-comments-to-be-updated/m-p/3411333#M1234259</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/489053"&gt;@Lowestoft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can achieve this functionality by using the &lt;STRONG&gt;"Wait for Message"&lt;/STRONG&gt; action in your Flow, which allows the flow to pause until it receives a specific message via the Flow API. Unfortunately, journal fields like Comments or Additional Comments aren’t directly selectable in the "Wait for Condition" action, so this approach is a reliable alternative.&lt;/P&gt;&lt;P&gt;Here are&amp;nbsp;the steps to implement:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Add a "Wait for Message" action in your flow:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Set &lt;STRONG&gt;Message&lt;/STRONG&gt; to "Resume Flow".&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Set&amp;nbsp;&lt;STRONG&gt;Enable timeout&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;Timeout&lt;/STRONG&gt; (&lt;STRONG&gt;optional&lt;/STRONG&gt;)&lt;BR /&gt;(only if you want to resume the flow if no message is received after a specific amount of time)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIftikhar_1-1761224550647.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478450iCDD3C2667F4D0E5F/image-size/medium?v=v2&amp;amp;px=400" alt="MIftikhar_1-1761224550647.png" title="MIftikhar_1-1761224550647.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Create an &lt;STRONG&gt;After Update Business Rule&lt;/STRONG&gt; on the &lt;STRONG&gt;Requested Item[sc_req_item]&lt;/STRONG&gt; table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Name it something like &lt;STRONG&gt;"Resume Flow - RITM Additional Comment"&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Set the filter condition to check if &lt;STRONG&gt;Comments&lt;/STRONG&gt; have changed.&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIftikhar_2-1761224622553.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478451iE2F8A978D389E33C/image-size/medium?v=v2&amp;amp;px=400" alt="MIftikhar_2-1761224622553.png" title="MIftikhar_2-1761224622553.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Check &lt;STRONG&gt;Advanced&lt;/STRONG&gt; and add the following script in the Script field:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="javascript"&gt;(function executeRule(current, previous /*null when async*/ ) {

    try {
		var lastComment = current.comments.getJournalEntry(1);
        var result = sn_fd.FlowAPI.sendMessage(current.flow_context, "Resume Flow", lastComment);
    } catch (ex) {
        var message = ex.getMessage();
        gs.error(message);
    }

})(current, previous);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Now, when the flow reaches the "Wait for Message" action, it will pause.&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIftikhar_3-1761224845848.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478452iC5EFE890D75C293F/image-size/medium?v=v2&amp;amp;px=400" alt="MIftikhar_3-1761224845848.png" title="MIftikhar_3-1761224845848.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Once an additional comment is added to the RITM, the business rule will trigger and send the&lt;STRONG&gt; "Resume Flow"&lt;/STRONG&gt;&amp;nbsp;message.&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIftikhar_4-1761224896699.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478453iA4C1538DC1697858/image-size/medium?v=v2&amp;amp;px=400" alt="MIftikhar_4-1761224896699.png" title="MIftikhar_4-1761224896699.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Refresh the flow execution, and you will see the flow resumes and continues processing.&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIftikhar_5-1761224956061.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/478454i497341B3E5274E67/image-size/medium?v=v2&amp;amp;px=400" alt="MIftikhar_5-1761224956061.png" title="MIftikhar_5-1761224956061.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;If my response helped, please mark it as the accepted solution so others can benefit as well.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 13:09:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/wait-for-addtional-comments-to-be-updated/m-p/3411333#M1234259</guid>
      <dc:creator>miftikhar20</dc:creator>
      <dc:date>2025-10-23T13:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for addtional comments to be updated</title>
      <link>https://www.servicenow.com/community/developer-forum/wait-for-addtional-comments-to-be-updated/m-p/3411340#M1234261</link>
      <description>&lt;P&gt;Thanks Muhammad, was not too sure how API message can be sent, so this approach of sending it via business rule seems to be the only option.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 13:27:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/wait-for-addtional-comments-to-be-updated/m-p/3411340#M1234261</guid>
      <dc:creator>Lowestoft</dc:creator>
      <dc:date>2025-10-23T13:27:39Z</dc:date>
    </item>
  </channel>
</rss>

