<?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: How have you used JavaScript and Ruby actions? in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1597#M636</link>
    <description>&lt;P&gt;yeah I had similar situation - raw data coming in was at a nested line level grouped by user, i had to break out the lines, then regroup based on expense type.  That's very simiple using JS object data structure, and no simple way to do it with OOTB recipe actions.  The recipe breaks out and collects lines into a single large list, which is then passed to the JS step which groups as needed before loading into target system&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;to date that's the only time I've had to resort to using "real" programming - the OOTB are generally pretty powerful.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 01:06:11 GMT</pubDate>
    <dc:creator>anthony-oconnor</dc:creator>
    <dc:date>2021-10-22T01:06:11Z</dc:date>
    <item>
      <title>How have you used JavaScript and Ruby actions?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1594#M633</link>
      <description>&lt;P&gt;Hi Pros,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;A few weeks back we published a &lt;A href="https://community.workato.com/links?lid=7jdNg1tiyoi2_r1HAWg3Zg&amp;amp;token=%2A%7CTOKEN%7C%2A&amp;amp;url=https%3A%2F%2Fwww.workato.com%2Fproduct-hub%2Fsemi-structured-data-tamed-with-javascript%2F%3Futm_source%3Dproscommunity%26utm_medium%3Dreferral%26utm_campaign%3Dpost-10-20" target="_blank" rel="noopener noreerrer"&gt;quick guide&lt;/A&gt; on using JavaScript for complex data-wrangling. Curious to know about your experiences with the JavaScript and Ruby actions in your own automations. How do you decide when to bring in code for transformations instead of using formulas, or conditional logic in the recipe builder? &lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 05:48:33 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1594#M633</guid>
      <dc:creator>kale-bogdanovs</dc:creator>
      <dc:date>2021-10-21T05:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: How have you used JavaScript and Ruby actions?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1595#M634</link>
      <description>&lt;P&gt;you might reach out to Mark Dailey (mdailey@psyncopate.com) as he and I are working on a cool project and he used Ruby in some wrangling/parsing. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 06:04:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1595#M634</guid>
      <dc:creator>akohrs</dc:creator>
      <dc:date>2021-10-21T06:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How have you used JavaScript and Ruby actions?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1596#M635</link>
      <description>&lt;P&gt;I had a case where I had a nested, delimited string to parse and couldn't find a way to handle it with OOTB actions, so had to learn a little Ruby to do it.  Our implementation consultant was the one who actually landed on using Ruby instead of OOTB actions (JS wasn't an option yet).  The string format was &amp;lt;fund1&amp;gt;:&amp;lt;amount1&amp;gt;|&amp;lt;fund2&amp;gt;:&amp;lt;amount2&amp;gt;|etc.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;00156:20.0|0999:100.0|UNRES:25.0&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I had to split it into fund:amount pairs and then map it to an array of objects, then loop through that array to get an internal ID for each fund code.  The purpose of the recipe was to parse that string and "enrich" it with the internal ID, and it proved a lot more complicated than I expected.  I think the array handling was counter-intuitive to me (as a programmer) b/c you couldn't just "enrich" an array, rather, we had to create a new array and loop one at a time over the existing array, copying over each element (now including the internal ID).&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 19:42:27 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1596#M635</guid>
      <dc:creator>mppowe</dc:creator>
      <dc:date>2021-10-21T19:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How have you used JavaScript and Ruby actions?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1597#M636</link>
      <description>&lt;P&gt;yeah I had similar situation - raw data coming in was at a nested line level grouped by user, i had to break out the lines, then regroup based on expense type.  That's very simiple using JS object data structure, and no simple way to do it with OOTB recipe actions.  The recipe breaks out and collects lines into a single large list, which is then passed to the JS step which groups as needed before loading into target system&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;to date that's the only time I've had to resort to using "real" programming - the OOTB are generally pretty powerful.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 01:06:11 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-have-you-used-javascript-and-ruby-actions/m-p/1597#M636</guid>
      <dc:creator>anthony-oconnor</dc:creator>
      <dc:date>2021-10-22T01:06:11Z</dc:date>
    </item>
  </channel>
</rss>

