<?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: SQL Server - New/Updated row based on view in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6865#M2964</link>
    <description>&lt;P&gt;My query selects all schedules that have a DTSStart filled in, so I already filter out the NULL values in my query.&lt;/P&gt;&lt;P&gt;The DTSStart date is the sort column I use.&lt;/P&gt;&lt;P&gt;The first few times the recipe was triggered based on all items in the query that have a start date filled in. But as soon as it has "handled" all old items, it stopped getting triggered by those, and is actually only getting triggered by new updates.&lt;BR /&gt;I was confused because I had 5 rows from the query that would trigger, but having a bit of patience solved this.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 08:19:11 GMT</pubDate>
    <dc:creator>mlamotte</dc:creator>
    <dc:date>2024-06-11T08:19:11Z</dc:date>
    <item>
      <title>SQL Server - New/Updated row based on view</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6841#M2957</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a view in SQL that shows a schedule (production order) with its startdate and update date (the update date does not always mean that the production order has started, just that something has been updated).&lt;/P&gt;&lt;P&gt;What I want to do is find a schedule that has started, so where startdate is updated from NULL to an actual date.&lt;/P&gt;&lt;P&gt;I was trying to not use a WHERE condition (e.g. WHERE stardate &amp;gt;= DATEADD(minute,-1,getdate()) to see which schedule for example started in the past minute, because there might be some lag on the update of the field.&lt;/P&gt;&lt;P&gt;How could I set up this action that it is just triggered by value startdate going from NULL to NOT NULL? Use a trigger condition or would a WHERE condition be possible?&lt;/P&gt;&lt;P&gt;I also want to avoid duplicate triggers, that we don't send the same information twice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:My bad, my query was the issue. IS NOT NULL was enough, and it works now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 09:48:02 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6841#M2957</guid>
      <dc:creator>mlamotte</dc:creator>
      <dc:date>2024-06-07T09:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server - New/Updated row based on view</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6842#M2958</link>
      <description>&lt;P&gt;Solved&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 09:48:36 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6842#M2958</guid>
      <dc:creator>mlamotte</dc:creator>
      <dc:date>2024-06-07T09:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server - New/Updated row based on view</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6862#M2963</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10358"&gt;@mlamotte&lt;/a&gt;&amp;nbsp;– what was the solution that worked for you? I'm sure other community members here would love to know!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 15:20:05 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6862#M2963</guid>
      <dc:creator>meghan-legaspi</dc:creator>
      <dc:date>2024-06-10T15:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server - New/Updated row based on view</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6865#M2964</link>
      <description>&lt;P&gt;My query selects all schedules that have a DTSStart filled in, so I already filter out the NULL values in my query.&lt;/P&gt;&lt;P&gt;The DTSStart date is the sort column I use.&lt;/P&gt;&lt;P&gt;The first few times the recipe was triggered based on all items in the query that have a start date filled in. But as soon as it has "handled" all old items, it stopped getting triggered by those, and is actually only getting triggered by new updates.&lt;BR /&gt;I was confused because I had 5 rows from the query that would trigger, but having a bit of patience solved this.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 08:19:11 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-server-new-updated-row-based-on-view/m-p/6865#M2964</guid>
      <dc:creator>mlamotte</dc:creator>
      <dc:date>2024-06-11T08:19:11Z</dc:date>
    </item>
  </channel>
</rss>

