<?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 Bulk delete of NetSuite Custom Table in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/bulk-delete-of-netsuite-custom-table/m-p/5737#M2510</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'd like to try and pick your brains for a solution to my question.&amp;nbsp; I'll start with the business requirement:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I need to pull out of NetSuite Spend by Supplier for the last 12 months including transaction count, payment count, etc&lt;OL&gt;&lt;LI&gt;I've written this query in SuiteQL and it runs in my recipe just fine&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Our Purchase 2 Pay (P2P) solution holds also supplier information which we want to join to the associated client NetSuite system suppliers so that in step 1 we don't bring back ALL NetSuite Suppliers, we only want suppliers who are also in our P2P system from NetSuite&lt;/LI&gt;&lt;LI&gt;So my first thought was to create a custom table in NetSuite and then do a bulk insert to that table, then use that table in the SuiteQL script as an inner join&lt;OL&gt;&lt;LI&gt;Again, I have this working via SuiteQL query&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;I would then return the result, convert it to CSV and deliver it back in subsequent steps within the recipe&lt;OL&gt;&lt;LI&gt;The result set could be up to 50k rows of data&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now my problem that I'd appreciate some help on:&amp;nbsp; I need to have a way to delete the rows out of the custom table so that it doesn't continue to grow, however the only way I can currently see to do this is via the delete by ID option which isnt viable with the number of rows being inserted to the custom table.&lt;/P&gt;&lt;P&gt;Alternatively, am I thinking about this the wrong way and there is a better way to address the requirement?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally SuiteQL only allows a select statement therefore&amp;nbsp;I can't:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select into a temp table via SuiteQL in NetSuite for the action and have the table automatically dropped when the session/connection terminates&lt;/LI&gt;&lt;LI&gt;Delete * from customtable via SuiteQL&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I started looking into possibly writing a custom script in NetSuite to do the delete of all rows in my custom table and then seeing if I can call that script via Workato but not sure if that's viable either.&lt;/P&gt;&lt;P&gt;Hopefully that's enough information for you but not too verbose.&amp;nbsp; Any/all help/guidance would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 12:55:47 GMT</pubDate>
    <dc:creator>asorgi</dc:creator>
    <dc:date>2023-11-30T12:55:47Z</dc:date>
    <item>
      <title>Bulk delete of NetSuite Custom Table</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/bulk-delete-of-netsuite-custom-table/m-p/5737#M2510</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'd like to try and pick your brains for a solution to my question.&amp;nbsp; I'll start with the business requirement:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I need to pull out of NetSuite Spend by Supplier for the last 12 months including transaction count, payment count, etc&lt;OL&gt;&lt;LI&gt;I've written this query in SuiteQL and it runs in my recipe just fine&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Our Purchase 2 Pay (P2P) solution holds also supplier information which we want to join to the associated client NetSuite system suppliers so that in step 1 we don't bring back ALL NetSuite Suppliers, we only want suppliers who are also in our P2P system from NetSuite&lt;/LI&gt;&lt;LI&gt;So my first thought was to create a custom table in NetSuite and then do a bulk insert to that table, then use that table in the SuiteQL script as an inner join&lt;OL&gt;&lt;LI&gt;Again, I have this working via SuiteQL query&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;I would then return the result, convert it to CSV and deliver it back in subsequent steps within the recipe&lt;OL&gt;&lt;LI&gt;The result set could be up to 50k rows of data&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now my problem that I'd appreciate some help on:&amp;nbsp; I need to have a way to delete the rows out of the custom table so that it doesn't continue to grow, however the only way I can currently see to do this is via the delete by ID option which isnt viable with the number of rows being inserted to the custom table.&lt;/P&gt;&lt;P&gt;Alternatively, am I thinking about this the wrong way and there is a better way to address the requirement?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally SuiteQL only allows a select statement therefore&amp;nbsp;I can't:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select into a temp table via SuiteQL in NetSuite for the action and have the table automatically dropped when the session/connection terminates&lt;/LI&gt;&lt;LI&gt;Delete * from customtable via SuiteQL&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I started looking into possibly writing a custom script in NetSuite to do the delete of all rows in my custom table and then seeing if I can call that script via Workato but not sure if that's viable either.&lt;/P&gt;&lt;P&gt;Hopefully that's enough information for you but not too verbose.&amp;nbsp; Any/all help/guidance would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 12:55:47 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/bulk-delete-of-netsuite-custom-table/m-p/5737#M2510</guid>
      <dc:creator>asorgi</dc:creator>
      <dc:date>2023-11-30T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk delete of NetSuite Custom Table</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/bulk-delete-of-netsuite-custom-table/m-p/6633#M2882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;NetSuite connector can only delete records by ID. I understand that it's not viable.&amp;nbsp;&lt;SPAN&gt;Execute&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SuiteQL query&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;NetSuite action only supports SELECT query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I suggest using a custom action instead, you may refer to the &lt;A href="https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3486552.html#bridgehead_N3486589" target="_self"&gt;NetSuite API doc&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 01:31:13 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/bulk-delete-of-netsuite-custom-table/m-p/6633#M2882</guid>
      <dc:creator>beatrice-talens</dc:creator>
      <dc:date>2024-05-09T01:31:13Z</dc:date>
    </item>
  </channel>
</rss>

