<?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: Can lookup table method be used with the Ruby Snippet Connector? in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11952#M4611</link>
    <description>&lt;P&gt;Oh Okay, got it.&lt;BR /&gt;Appreciate your effort for sharing the detailed info....will look into these&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2026 19:05:43 GMT</pubDate>
    <dc:creator>Bhagya_pola</dc:creator>
    <dc:date>2026-02-23T19:05:43Z</dc:date>
    <item>
      <title>Can lookup table method be used with the Ruby Snippet Connector?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11947#M4607</link>
      <description>&lt;P&gt;Documentation referenced:&lt;BR /&gt;- Ruby Snippets by Workato:&amp;nbsp;&lt;A href="https://docs.workato.com/en/connectors/ruby-snippets-by-workato.html" target="_blank"&gt;https://docs.workato.com/en/connectors/ruby-snippets-by-workato.html&lt;/A&gt;&lt;BR /&gt;- Available Ruby methods:&amp;nbsp;&lt;A href="https://docs.workato.com/en/developing-connectors/sdk/sdk-reference/ruby_methods.html#lookup" target="_blank"&gt;https://docs.workato.com/en/developing-connectors/sdk/sdk-reference/ruby_methods.html#lookup&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I'm trying to understand how I might be able to use lookup() within the ruby snippet. The documentation implies that you should be able to, but whenever I try, I receive this error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Lookup Tables are not initialized. Init data by calling LookupTable.from_file or LookupTable.load_data code.rb&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;The line I have in the snippet is quite simple:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;#...
plans_by_supplier.each do |supplier, lines|
  vendor = lookup("Supplier Vendor Table", site: supplier)["vendor"] 
  # ... other stuff here 
  plans &amp;lt;&amp;lt; {
    vendor: vendor
  }
end 

#...&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;At the end of the day what I'm trying to do is be able to find the value associated to a given key and return that field for each key in an array.&lt;BR /&gt;I know it can be done in a regular formula, but that would require looping through multiple layers of arrays to get to the fields I want, resulting in 100s of tasks.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm happy to hear other suggestions to solve my issue, or any context for if this should work, if it would work with data_tables instead.. etc?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 21:26:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11947#M4607</guid>
      <dc:creator>seemah123</dc:creator>
      <dc:date>2026-02-20T21:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can lookup table method be used with the Ruby Snippet Connector?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11948#M4608</link>
      <description>&lt;P&gt;I think there are three different Ruby gems used in Workato:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Formula Ruby gem, works with lookup table&lt;/LI&gt;&lt;LI&gt;SDK Ruby gem, also works with lookup table&lt;/LI&gt;&lt;LI&gt;Snippet Ruby gem, doesn't work with lookup table&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My recommendation is to get your entire lookup table in a previous action and pass it into Ruby snippet as input. This won't work if the LUT is over 10k rows.&lt;/P&gt;&lt;P&gt;If this is simply mapping problem, you may not need to use the Ruby snippet at all. It may be possible to get the keys you need without looping, but I would need to see the payload structure to know for sure.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 22:01:37 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11948#M4608</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-20T22:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can lookup table method be used with the Ruby Snippet Connector?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11950#M4609</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;How you know all this information (Gems), I'm a bit curious :), are these mentioned in the doc?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 18:48:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11950#M4609</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2026-02-23T18:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can lookup table method be used with the Ruby Snippet Connector?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11951#M4610</link>
      <description>&lt;P&gt;I don't know with 100% certainty, but I feel it's fair to assume...&lt;/P&gt;&lt;P&gt;This page mentions the SDK gem, which no longer has any whitelist:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.workato.com/en/developing-connectors/sdk/sdk-reference/whitelist-removal.html#key-capabilities" target="_blank"&gt;https://docs.workato.com/en/developing-connectors/sdk/sdk-reference/whitelist-removal.html#key-capabilities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The page below is for&amp;nbsp;&lt;STRONG&gt;connector&lt;/STRONG&gt; documentation and mentions a whitelist for the Ruby connector, but the link to the&amp;nbsp;&lt;STRONG&gt;SDK&lt;/STRONG&gt; implies the whitelist was removed. This is inaccurate because the Ruby connector &lt;EM&gt;does&lt;/EM&gt;&amp;nbsp;still have a whitelist and behaves differently from the SDK.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.workato.com/en/connectors/ruby-snippets-by-workato.html#runtime-version" target="_blank"&gt;https://docs.workato.com/en/connectors/ruby-snippets-by-workato.html#runtime-version&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And lastly, formula mode obviously has a whitelist, which is loosely mentioned here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.workato.com/en/formulas/formula-mode.html" target="_blank"&gt;https://docs.workato.com/en/formulas/formula-mode.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Ruby methods not found in Workato documentation are not allowlisted and, therefore, not supported. Contact your Customer Success Manager to request new formulas for the allowlist.&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Because all three of them behave differently, I can only assume they are driven by three unique gems!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 18:56:11 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11951#M4610</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-23T18:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can lookup table method be used with the Ruby Snippet Connector?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11952#M4611</link>
      <description>&lt;P&gt;Oh Okay, got it.&lt;BR /&gt;Appreciate your effort for sharing the detailed info....will look into these&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 19:05:43 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/can-lookup-table-method-be-used-with-the-ruby-snippet-connector/m-p/11952#M4611</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2026-02-23T19:05:43Z</dc:date>
    </item>
  </channel>
</rss>

