<?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: Load Lookup Table Into Collection in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6345#M2789</link>
    <description>&lt;P&gt;Can confirm, this worked great!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 19:23:57 GMT</pubDate>
    <dc:creator>michael-zachar</dc:creator>
    <dc:date>2024-04-03T19:23:57Z</dc:date>
    <item>
      <title>Load Lookup Table Into Collection</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6299#M2765</link>
      <description>&lt;P&gt;I'm trying to take data from a lookup table and put it into a collection for complex searches, but I cannot for the life of me figure out how to get from querying all entries from the lookup table to getting them into the collection.&amp;nbsp; The lookup table query returns a list that does not allow me to access the entries datapill to use as the datasource for the collection.&amp;nbsp; Any example recipes that show how to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 22:47:29 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6299#M2765</guid>
      <dc:creator>michael-zachar</dc:creator>
      <dc:date>2024-03-26T22:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load Lookup Table Into Collection</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6308#M2768</link>
      <description>&lt;P&gt;Wow, I never realized the lookup table output was structured this way. If you don't need the Workato IDs, the below steps will work. If you do need the Workato IDs, let me know and I'm sure there's another way.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use the Lookup Table action to get the whole table&lt;/LI&gt;&lt;LI&gt;Add a JSON parser with this as the schema (you could adjust the data types as needed, but prob not necessary)&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="javascript"&gt;[{
	"col1": "2",
	"col2": "two",
	"col3": null,
	"col4": null,
	"col5": null,
	"col6": null,
	"col7": null,
	"col8": null,
	"col9": null,
	"col10": null
}]&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;In the JSON parser document field, enter this in formula mode: [entries datapill].pluck('entry').to_json&lt;/LI&gt;&lt;LI&gt;Add a SQL Collection action and use the "Array" output list from the JSON parser as input&lt;/LI&gt;&lt;LI&gt;Query the Collection&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It should look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_2-1711499727714.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1095i0DD2F38E5785CB13/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_2-1711499727714.png" alt="gary1_2-1711499727714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;JSON parser:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_1-1711499675258.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1094iF1A0BD49C7604C93/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_1-1711499675258.png" alt="gary1_1-1711499675258.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Query:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_3-1711499748691.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1096iC1983576FDAA1C0A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_3-1711499748691.png" alt="gary1_3-1711499748691.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Query output (as CSV):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_4-1711499776705.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1097iC448EF453BA94A19/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_4-1711499776705.png" alt="gary1_4-1711499776705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 00:37:08 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6308#M2768</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-03-27T00:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load Lookup Table Into Collection</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6309#M2769</link>
      <description>&lt;P&gt;Thanks, I'll try that out later this week.&amp;nbsp; Currently I'm using a workaround where I made the table into a CSV and just pull it in from our SFTP site while I do testing around the rest of the recipe.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 15:28:57 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6309#M2769</guid>
      <dc:creator>michael-zachar</dc:creator>
      <dc:date>2024-03-27T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load Lookup Table Into Collection</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6345#M2789</link>
      <description>&lt;P&gt;Can confirm, this worked great!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:23:57 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/load-lookup-table-into-collection/m-p/6345#M2789</guid>
      <dc:creator>michael-zachar</dc:creator>
      <dc:date>2024-04-03T19:23:57Z</dc:date>
    </item>
  </channel>
</rss>

