<?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 Condition in Flow not waiting long enough? in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/wait-for-condition-in-flow-not-waiting-long-enough/m-p/3109352#M1668</link>
    <description>&lt;P&gt;Will still wait to see if anyone has a response to this.&amp;nbsp; As a work around, instead of using the ticket.approval value, I instead added a manual string input for the action script which is based off an if statement in the flow after the Ask for Approval and the Condition.&amp;nbsp; If the approval state is approved, I pass an 'approved' string value, else I pass 'rejected'.&amp;nbsp; These would be the values of the ticket.approval if it processed in time, which I think is the issue.&amp;nbsp; Still not sure how it gets past the condition if the RITM approval value is neither 'approved' or 'rejected'...&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 18:42:14 GMT</pubDate>
    <dc:creator>Jason_DaSilva</dc:creator>
    <dc:date>2024-11-20T18:42:14Z</dc:date>
    <item>
      <title>Wait for Condition in Flow not waiting long enough?</title>
      <link>https://www.servicenow.com/community/community-central-forum/wait-for-condition-in-flow-not-waiting-long-enough/m-p/3108249#M1660</link>
      <description>&lt;P&gt;I have looked up a few similar posts, and it appears that when you use the Ask For Approval action, it should wait for the approval before continuing.&amp;nbsp; Well, I have that in place and the conditions are either 1 approves or 1 rejects.&amp;nbsp; After that I run a custom action script that needs to reference the RITMs approval field.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Things were not firing correctly, so I logged the value of this field in the script action and it was coming back as 'requested' instead of as 'approved' or 'rejected'.&amp;nbsp; So I took this one step further and added a wait for condition that the RITM is either approved or rejected.&amp;nbsp; Still I am getting the approval field returned as requested.&amp;nbsp; This is very odd because last week, this code worked fine.&lt;BR /&gt;&lt;BR /&gt;I know the code works cause if I fudge the value of the approval field to be either approved or rejected the script works fine...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Some kind of timing issue?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 17:08:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/wait-for-condition-in-flow-not-waiting-long-enough/m-p/3108249#M1660</guid>
      <dc:creator>Jason_DaSilva</dc:creator>
      <dc:date>2024-11-19T17:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for Condition in Flow not waiting long enough?</title>
      <link>https://www.servicenow.com/community/community-central-forum/wait-for-condition-in-flow-not-waiting-long-enough/m-p/3108343#M1664</link>
      <description>&lt;P&gt;Quick update to this.&amp;nbsp; It started to work and then just as suddenly it stopped working.&amp;nbsp; The only change I made was to remove a commented out log line from the Action.&amp;nbsp; I am confused as to why this works 'sometimes'...&lt;BR /&gt;&lt;BR /&gt;I do not understand how it can get past the Ask For Approval action and then a Wait for Condition where the condition is that the RITM's approval field is either 'approved' or 'rejected' and still have the value that was just previously tested for as 'requested'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 20:07:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/wait-for-condition-in-flow-not-waiting-long-enough/m-p/3108343#M1664</guid>
      <dc:creator>Jason_DaSilva</dc:creator>
      <dc:date>2024-11-19T20:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for Condition in Flow not waiting long enough?</title>
      <link>https://www.servicenow.com/community/community-central-forum/wait-for-condition-in-flow-not-waiting-long-enough/m-p/3109352#M1668</link>
      <description>&lt;P&gt;Will still wait to see if anyone has a response to this.&amp;nbsp; As a work around, instead of using the ticket.approval value, I instead added a manual string input for the action script which is based off an if statement in the flow after the Ask for Approval and the Condition.&amp;nbsp; If the approval state is approved, I pass an 'approved' string value, else I pass 'rejected'.&amp;nbsp; These would be the values of the ticket.approval if it processed in time, which I think is the issue.&amp;nbsp; Still not sure how it gets past the condition if the RITM approval value is neither 'approved' or 'rejected'...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 18:42:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/wait-for-condition-in-flow-not-waiting-long-enough/m-p/3109352#M1668</guid>
      <dc:creator>Jason_DaSilva</dc:creator>
      <dc:date>2024-11-20T18:42:14Z</dc:date>
    </item>
  </channel>
</rss>

