<?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: Sum up costs from multiple Companies and warehouses in Epcior in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sum-up-costs-from-multiple-companies-and-warehouses-in-epcior/m-p/5289#M2342</link>
    <description>&lt;P&gt;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9680"&gt;@anthony_chen&lt;/a&gt;&amp;nbsp;responses in other thread:&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you doing to query? One problem is that if you have 2500 items and you iterate through each one you are using 2500 tasks. I dont know about you but we get 250,000 tasks/year for a recipe. So you will run through your tasks very quickly.&lt;/P&gt;&lt;P&gt;If you are using the sql connect list or you have a connection that allows sql (e.g. snowflake, postgres, etc) you can filter out the nulls in the query and then do a sum in the query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;I did a bit more research. Unfortunately the sql collection I mentioned in my reply wont do sum. It only will let you filter out null values.&lt;/P&gt;&lt;P&gt;Normally in sql you can do something like this:&lt;BR /&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(quantity)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;TotalQuantity&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;your_table_name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;quantity&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;IS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;NULL&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It looks like you need the sql transformations app to do summation. You dont get the app by default&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 13:07:28 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2023-10-03T13:07:28Z</dc:date>
    <item>
      <title>Sum up costs from multiple Companies and warehouses in Epcior</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sum-up-costs-from-multiple-companies-and-warehouses-in-epcior/m-p/5287#M2340</link>
      <description>&lt;P&gt;Our version of Epcior has 3 Companies (ACA1, AUS2 and PICO)&lt;/P&gt;&lt;P&gt;I have a function where I want to pull the QtyOnHand for any SKU that is called by this function&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KN2SF parts QtyOnHand Function&amp;nbsp; SKUXYZ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the function will do 3 searches such as this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnw_0-1696337824267.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/699i52ED6672A14F3B80/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="johnw_0-1696337824267.png" alt="johnw_0-1696337824267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnw_1-1696337844353.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/700i6C6EF3A984D3A55F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="johnw_1-1696337844353.png" alt="johnw_1-1696337844353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and it can output nil or multiple warehouses with qtyonhand and NonNettable Fields&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnw_2-1696337928764.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/701i86727A804CE2461F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="johnw_2-1696337928764.png" alt="johnw_2-1696337928764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what's the best way to take all these numbers from 3 different search steps and add them together.&lt;/P&gt;&lt;P&gt;I've been trying to create different types of variable sand lists and not having any luck.&lt;/P&gt;&lt;P&gt;I did hard code a list and added each step individually and this worked as long as there was only NIL or 1 warehouse in each company else it would return 0&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;John&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>Tue, 03 Oct 2023 13:01:35 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sum-up-costs-from-multiple-companies-and-warehouses-in-epcior/m-p/5287#M2340</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2023-10-03T13:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum up costs from multiple Companies and warehouses in Epcior</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sum-up-costs-from-multiple-companies-and-warehouses-in-epcior/m-p/5289#M2342</link>
      <description>&lt;P&gt;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9680"&gt;@anthony_chen&lt;/a&gt;&amp;nbsp;responses in other thread:&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you doing to query? One problem is that if you have 2500 items and you iterate through each one you are using 2500 tasks. I dont know about you but we get 250,000 tasks/year for a recipe. So you will run through your tasks very quickly.&lt;/P&gt;&lt;P&gt;If you are using the sql connect list or you have a connection that allows sql (e.g. snowflake, postgres, etc) you can filter out the nulls in the query and then do a sum in the query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;I did a bit more research. Unfortunately the sql collection I mentioned in my reply wont do sum. It only will let you filter out null values.&lt;/P&gt;&lt;P&gt;Normally in sql you can do something like this:&lt;BR /&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(quantity)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;TotalQuantity&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;your_table_name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;quantity&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;IS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;NULL&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It looks like you need the sql transformations app to do summation. You dont get the app by default&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:07:28 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sum-up-costs-from-multiple-companies-and-warehouses-in-epcior/m-p/5289#M2342</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2023-10-03T13:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum up costs from multiple Companies and warehouses in Epcior</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sum-up-costs-from-multiple-companies-and-warehouses-in-epcior/m-p/5291#M2343</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9680"&gt;@anthony_chen&lt;/a&gt;&amp;nbsp;I am checking with IT to find out our license limitations... we may be ok since we only have 2500 or so SKUs being moved from Epcor to SFDC and then only scheduled one to check all of them will be for cost and that will be weekly. BUT its good to know where those limits are and be prepared.&lt;/P&gt;&lt;P&gt;as far as SQL Transformation is concerned, I found it here and we don't have it BUT it says its only for CSV is this what you are referring to or is there something else that could work for my situation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnw_0-1696338602613.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/702i078AE4C9C89A8DAE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="johnw_0-1696338602613.png" alt="johnw_0-1696338602613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:11:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sum-up-costs-from-multiple-companies-and-warehouses-in-epcior/m-p/5291#M2343</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2023-10-03T13:11:09Z</dc:date>
    </item>
  </channel>
</rss>

