<?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>topic Re: Escape from Repeat Based on condition in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5197#M2296</link>
    <description>&lt;P&gt;If you're referring to the error monitor, it doesn't automatically mark a job as failed in the job report. The job viewer will still show which action had the error, but the job could be configured to stop successfully or failed.&lt;/P&gt;&lt;P&gt;Job report:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_0-1695402516906.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/669i40A508D80D1018E2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_0-1695402516906.png" alt="gary1_0-1695402516906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Job viewer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_1-1695402550919.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/670i68180C436669DFCC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_1-1695402550919.png" alt="gary1_1-1695402550919.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 17:10:46 GMT</pubDate>
    <dc:creator>gary1</dc:creator>
    <dc:date>2023-09-22T17:10:46Z</dc:date>
    <item>
      <title>Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5131#M2261</link>
      <description>&lt;P&gt;How to escape from a repeat loop in workato when a specific condition is met? Repeating entire list and check condition is bad for the performance.&lt;/P&gt;&lt;P&gt;I don t want to&amp;nbsp; use monitor functionality and throw error to escape from the loop.&lt;/P&gt;&lt;P&gt;is there any alternate solution present?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 09:39:47 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5131#M2261</guid>
      <dc:creator>prp_proton</dc:creator>
      <dc:date>2023-09-15T09:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5140#M2264</link>
      <description>&lt;P&gt;There are different options, but it depends on your input and what you're trying to accomplish. If you can provide more info we can probably make a few suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 17:46:38 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5140#M2264</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-09-18T17:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5145#M2267</link>
      <description>&lt;P&gt;I usually write python or ruby module for that purpose.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 21:46:19 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5145#M2267</guid>
      <dc:creator>sampath</dc:creator>
      <dc:date>2023-09-18T21:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5148#M2270</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am just looping over a repeat helper list which is of size 100(size is unknown). Inside the loop, I am calling salesforce. Based on the SF response, when a flag is true, I want to exit from the loop and do the other processing's.&lt;/P&gt;&lt;P&gt;I don't want to create 100 tasks, when I might require to exit after 5 tasks. This is the scenario.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 05:51:23 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5148#M2270</guid>
      <dc:creator>prp_proton</dc:creator>
      <dc:date>2023-09-19T05:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5149#M2271</link>
      <description>&lt;P&gt;So, do I need to do the entire loop processing inside the ruby module or in ruby, there is an option to exit from the workato provide repeat action?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 05:54:52 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5149#M2271</guid>
      <dc:creator>prp_proton</dc:creator>
      <dc:date>2023-09-19T05:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5153#M2274</link>
      <description>&lt;P&gt;If you're calling SF within the loop and you need the SF response/flag to break the loop, then the simplest way to accomplish this is to use the error monitor. It does exactly what you need and will not process the full list once the loop is broken. You can configure it so it does additional processing after the catch/break.&lt;/P&gt;&lt;P&gt;Is there a reason don't you want to use the error monitor?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 17:25:19 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5153#M2274</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-09-19T17:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5154#M2275</link>
      <description>&lt;P&gt;I wanted to limit the iterations. So I used ruby while loop or take_while loop . it helped me to avoid looping through all the items in the list. ( we do not have return or break options )&lt;/P&gt;&lt;P&gt;if you need further help, please let me know. Happy to help&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 21:37:42 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5154#M2275</guid>
      <dc:creator>sampath</dc:creator>
      <dc:date>2023-09-19T21:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5155#M2276</link>
      <description>&lt;P&gt;Another possible workaround to this&amp;nbsp;&lt;SPAN&gt;is to utilize a Recipe Function.&amp;nbsp;Within the Recipe function, include the necessary loop and condition.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Once the condition is met, use the Return function to exit the Recipe Function and return to the parent recipe.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 08:13:01 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5155#M2276</guid>
      <dc:creator>javier-riesco</dc:creator>
      <dc:date>2023-09-20T08:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5158#M2279</link>
      <description>&lt;P&gt;Yea I agree about the Monitor/Error block.&amp;nbsp; I resisted using it at first b/c it felt un-intuitive and a bit of an eyesore for this purpose, but I embraced it b/c it's easy.&amp;nbsp; The recipe function idea is a good one too, but you may want to save the task usage if you'll be calling this recipe (and/or the function) many times.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:08:15 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5158#M2279</guid>
      <dc:creator>mppowe</dc:creator>
      <dc:date>2023-09-20T14:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5163#M2283</link>
      <description>&lt;P&gt;The content has been removed for clarity purposes.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 12:33:57 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5163#M2283</guid>
      <dc:creator>javier-riesco</dc:creator>
      <dc:date>2023-09-22T12:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5168#M2284</link>
      <description>&lt;P&gt;Javier,&lt;/P&gt;&lt;P&gt;It has always been my understanding that calling a Recipe Function consumes a task.&amp;nbsp; It was a big bone of contention for me when I found out and I brought it up to my CSM multiple times.&amp;nbsp; I've never heard back that it didn't consume a task.&amp;nbsp; When I read your post I thought maybe Workato had changed its policy to ignore those actions now, but in looking at a job this morning it still seems to be consuming a task:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mppowe_0-1695300500980.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/654iFC0971939CE10FC5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="mppowe_0-1695300500980.png" alt="mppowe_0-1695300500980.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 12:48:36 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5168#M2284</guid>
      <dc:creator>mppowe</dc:creator>
      <dc:date>2023-09-21T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5183#M2292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9658"&gt;@prp_proton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It depends on your use case; for example, if you want to stop the loop after several lists or indexes, you can add a condition and a monitor action to move to the next step in the recipe. Here's an example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marlonmuela_0-1695377061052.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/661i4858D368A3EEA14A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="marlonmuela_0-1695377061052.png" alt="marlonmuela_0-1695377061052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 10:04:40 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5183#M2292</guid>
      <dc:creator>marlon-muela</dc:creator>
      <dc:date>2023-09-22T10:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5193#M2294</link>
      <description>&lt;P&gt;mppowe&lt;/P&gt;&lt;P&gt;You are correct. Calling a recipe function will consume 2 additional tasks per loop: one when calling the recipe, and another for the Return action. Please refer to the screenshot below for reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="javierriesco_0-1695385538855.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/668iAB47F7884A5403DF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="javierriesco_0-1695385538855.png" alt="javierriesco_0-1695385538855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 12:35:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5193#M2294</guid>
      <dc:creator>javier-riesco</dc:creator>
      <dc:date>2023-09-22T12:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5194#M2295</link>
      <description>&lt;P&gt;If we are using the catch break..... it will show error in the job report. which is actually misleading. Thats why looking some another solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 16:56:35 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5194#M2295</guid>
      <dc:creator>prp_proton</dc:creator>
      <dc:date>2023-09-22T16:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5197#M2296</link>
      <description>&lt;P&gt;If you're referring to the error monitor, it doesn't automatically mark a job as failed in the job report. The job viewer will still show which action had the error, but the job could be configured to stop successfully or failed.&lt;/P&gt;&lt;P&gt;Job report:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_0-1695402516906.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/669i40A508D80D1018E2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_0-1695402516906.png" alt="gary1_0-1695402516906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Job viewer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_1-1695402550919.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/670i68180C436669DFCC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_1-1695402550919.png" alt="gary1_1-1695402550919.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 17:10:46 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5197#M2296</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-09-22T17:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5198#M2297</link>
      <description>&lt;P&gt;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp; is right, I have recipes that catch errors but don't fail out.&amp;nbsp; They handle the error then move on.&amp;nbsp; In those cases the Job History doesn't show failure.&amp;nbsp; The "Error Message" from the Catch block is populated, but that won't show anywhere unless you're exposing that in the Job History&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 17:22:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5198#M2297</guid>
      <dc:creator>mppowe</dc:creator>
      <dc:date>2023-09-22T17:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5203#M2302</link>
      <description>&lt;P&gt;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/3769"&gt;@mppowe&lt;/a&gt;, &lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;: I mean to say, if we are monitoring the repeat step using try catch and based on the condition, want to get out of the loop, so when ever the condition match, the action will be marked as error to go to the catch block. I agree that in Catch block we can mark it as successful, but in the job history will is not show the&amp;nbsp; action as RED MARK. is this appropriate to implement like this?&lt;/P&gt;&lt;P&gt;Also, if any real error happens inside the repeat (i.e connectivity issue to another system) that will also endup to the same catch block.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 05:43:01 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5203#M2302</guid>
      <dc:creator>prp_proton</dc:creator>
      <dc:date>2023-09-25T05:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from Repeat Based on condition</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5205#M2304</link>
      <description>&lt;P&gt;It will not show as a red mark unless the job fails.&amp;nbsp;&lt;BR /&gt;When I throw the error to exit the loop, I use a specific error message. Then in the catch block, check for that message. D it matches, you move on, otherwise handle the unexpected error like normal. That way if you want to to fail it will.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 11:34:27 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escape-from-repeat-based-on-condition/m-p/5205#M2304</guid>
      <dc:creator>mppowe</dc:creator>
      <dc:date>2023-09-25T11:34:27Z</dc:date>
    </item>
  </channel>
</rss>

