<?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: Looping through a lookup table and taking different actions per result in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1938#M774</link>
    <description>&lt;P&gt;I built a similar, though not identical, solution also based on creating Jira issues based on input from another system. The way I built it closes matches what &lt;A href="https://systematic.workato.com/workato-migration/users/2373689"&gt;Joseph Blanchett&lt;/A&gt;  mentioned in a previous post.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1. Import product data used to created issues in various Jira projects.&lt;/P&gt;&lt;P&gt;2. Query Jira to get a list of all the relevant projects.&lt;/P&gt;&lt;P&gt;3. Loop through the products from step one with a nested loop for the Jira projects from step 2. The comparision is done inside the second, inner, loop.&lt;/P&gt;&lt;P&gt;4. We have a default project to use when there is no match made in the comparision logic.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Using this logic flow my list of products and projects can change and grow without any edits to my receipe. If we find that too many products are mathcing to the default project that is an indicator there is enough of a change, to either the product descriptions or the Jira project descriptions, to update the comparision logic inside the inner loop, or we have a misconfigured product/project.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We monitor the default project comparision in Jira but you could also build that along with a notification in the receipe if needed. &lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 04:20:30 GMT</pubDate>
    <dc:creator>robert-klohr</dc:creator>
    <dc:date>2021-12-10T04:20:30Z</dc:date>
    <item>
      <title>Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1933#M769</link>
      <description>&lt;P&gt;Hello! I am looking for the best approach to this.  I have an array of products.  I loop through the array looking to product matches to those in my lookup table.  As there are matches, I am creating Jira Issues of different types and in different projects.  This seems like a use case for custom coding or a custom action.  Doing this inline for 6-7 potential matches is a bit unwieldy.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I am hoping to get some opinions.  Thanks in advance if you have some thoughts!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;UPDATE: I am posting what I did for the next person who may wander by.&lt;/P&gt;&lt;P&gt;I added the Jira Project Key and the Issue Type Name to the Lookup Table for each SKU.  Then, when I created the Jira Issues, I used the Data pills from the list to populate the Project/Issue Type field to make that dynamic: &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then, I selected a Task Type from the drop-down list so that the custom fields that are in that project will be available for mapping:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;It is working beautifully.  A repeatable action (for each loop) is checking a dataset against the lookup table and creating the correct type of Jira issue for each match.  &lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 01:33:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1933#M769</guid>
      <dc:creator>tara1</dc:creator>
      <dc:date>2021-12-10T01:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1934#M770</link>
      <description>&lt;P&gt;I would try to make a single "Create JIRA Issue" callable recipe or action in Workato that simply takes variables in as inputs and creates the JIRA ticket properly based on the product type. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;Product Type 1 --&amp;gt; Create Story in Project1&lt;/P&gt;&lt;P&gt;Product Type 2 --&amp;gt; Create Task in Project 2&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;You could use lookup table(s) to make the association. Your recipe then becomes something like this&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;- Get Product Type&lt;/P&gt;&lt;P&gt;- Search Lookup Table for Product Type's JIRA Attributes&lt;/P&gt;&lt;P&gt;- Create JIRA Ticket associated with Attributes&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is much more manageable than doing an IF condition for each product type. Your recipe will get really long if you go that route. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 01:52:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1934#M770</guid>
      <dc:creator>jblanchett</dc:creator>
      <dc:date>2021-12-10T01:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1935#M771</link>
      <description>&lt;P&gt;This a possibility if I store enough info in the lookup table to draw from - which is entirely possible.  Thanks! I'll explore that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 01:55:25 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1935#M771</guid>
      <dc:creator>tara1</dc:creator>
      <dc:date>2021-12-10T01:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1936#M772</link>
      <description>&lt;DIV dir="ltr"&gt;@tara You could create a dynamic master mapping table with all of the various permutations required.&amp;nbsp; You can then index match the [input] against this table (which should expand and contract) according to the addition and removal of each product.&amp;nbsp; The output should&amp;nbsp;then feed into the Jira table.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;-- ---------------&lt;/SPAN&gt;</description>
      <pubDate>Fri, 10 Dec 2021 02:27:49 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1936#M772</guid>
      <dc:creator>llaryea</dc:creator>
      <dc:date>2021-12-10T02:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1937#M773</link>
      <description>&lt;P&gt;&lt;SPAN id="mob-widget-1639076576239" class="mention"&gt;Tara Rowell&lt;/SPAN&gt;  have you considered loading both sets into a collection so you can execcute SQL against them as joined tables?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 03:03:44 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1937#M773</guid>
      <dc:creator>david-macintosh</dc:creator>
      <dc:date>2021-12-10T03:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1938#M774</link>
      <description>&lt;P&gt;I built a similar, though not identical, solution also based on creating Jira issues based on input from another system. The way I built it closes matches what &lt;A href="https://systematic.workato.com/workato-migration/users/2373689"&gt;Joseph Blanchett&lt;/A&gt;  mentioned in a previous post.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1. Import product data used to created issues in various Jira projects.&lt;/P&gt;&lt;P&gt;2. Query Jira to get a list of all the relevant projects.&lt;/P&gt;&lt;P&gt;3. Loop through the products from step one with a nested loop for the Jira projects from step 2. The comparision is done inside the second, inner, loop.&lt;/P&gt;&lt;P&gt;4. We have a default project to use when there is no match made in the comparision logic.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Using this logic flow my list of products and projects can change and grow without any edits to my receipe. If we find that too many products are mathcing to the default project that is an indicator there is enough of a change, to either the product descriptions or the Jira project descriptions, to update the comparision logic inside the inner loop, or we have a misconfigured product/project.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We monitor the default project comparision in Jira but you could also build that along with a notification in the receipe if needed. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 04:20:30 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1938#M774</guid>
      <dc:creator>robert-klohr</dc:creator>
      <dc:date>2021-12-10T04:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1939#M775</link>
      <description>&lt;P&gt;Interesting - I will think on this.  The incoming data set differs with each run of the recipe, but I like the concept of building in methods to lower the need to manually update when the disparate systems themselves change.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 04:33:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1939#M775</guid>
      <dc:creator>tara1</dc:creator>
      <dc:date>2021-12-10T04:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1940#M776</link>
      <description>&lt;P&gt;&lt;A href="https://systematic.workato.com/workato-migration/users/2413465"&gt;David MacIntosh&lt;/A&gt; I will explore that, too - thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 04:34:32 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1940#M776</guid>
      <dc:creator>tara1</dc:creator>
      <dc:date>2021-12-10T04:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a lookup table and taking different actions per result</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1941#M777</link>
      <description>&lt;P&gt;Hi Tara,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;   Workato actually has a convenient function that can be leveraged with Lookup Tables.  This has helped me avoid some ForEach loops and simplify my Recipes.  Docs page is here .&lt;A href="https://docs.workato.com/features/lookup-tables.html#lookup-table-formulas" target="_blank" rel="noreferrer noopener"&gt;Lookup tables | Workato Docs&lt;/A&gt;  Let me know if you have any questions about using it.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt; Jeff&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Dec 2021 04:50:30 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/looping-through-a-lookup-table-and-taking-different-actions-per/m-p/1941#M777</guid>
      <dc:creator>jeff-allen</dc:creator>
      <dc:date>2021-12-11T04:50:30Z</dc:date>
    </item>
  </channel>
</rss>

