{"id":797,"date":"2021-07-11T19:42:14","date_gmt":"2021-07-11T18:42:14","guid":{"rendered":"https:\/\/wp.bizoir.dk\/?p=797"},"modified":"2021-11-28T12:26:07","modified_gmt":"2021-11-28T11:26:07","slug":"logicapps-remember-state-of-a-subscribing-trigger","status":"publish","type":"post","link":"https:\/\/wp.bizoir.dk\/?p=797","title":{"rendered":"LogicApps &#8211; remember state of a subscribing trigger"},"content":{"rendered":"<p>LogicApps has two different kinds of triggers<\/p>\n<ul>\n<li>Polling<\/li>\n<li>Subscribing<\/li>\n<\/ul>\n<p>The polling triggers are easy. Whenever the LogicApp is enabled and its trigger is scheduled, it will poll the source for new messages.<\/p>\n<p>The subscribing triggers, like CDS(Dataverse)- and SQL-triggers, are a little harder.<\/p>\n<p>Those triggers has state and remembers where it left off, so if you disable the logic app and re-enable it, then it will <strong>trigger for all of the items it has not yet seen since the last time the trigger fired<\/strong>.<\/p>\n<p>This can give you massive problems, if you disabled the LogicApp for the purpose of mass-updating eg. SQL rows without triggering the LogicApp.<br \/>\n<!--more--><br \/>\nIf you want to clear the trigger state change something in the trigger and save it before enabling it again. This should reset\/clear any trigger state.<br \/>\nAny connector that needs a marker as to where it left off will utilize this.<\/p>\n<p><a href=\"https:\/\/notetoself.tech\/2018\/12\/12\/reseting-state-of-a-logic-app-trigger\/\" rel=\"nofollow ugc\">https:\/\/notetoself.tech\/2018\/12\/12\/reseting-state-of-a-logic-app-trigger\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LogicApps has two different kinds of triggers Polling Subscribing The polling triggers are easy. Whenever the LogicApp is enabled and its trigger is scheduled, it will poll the source for new messages. The subscribing triggers, like CDS(Dataverse)- and SQL-triggers, are a little harder. Those triggers has state and remembers where it left off, so if &hellip; <a href=\"https:\/\/wp.bizoir.dk\/?p=797\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;LogicApps &#8211; remember state of a subscribing trigger&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[30,36],"class_list":["post-797","post","type-post","status-publish","format-standard","hentry","category-guides","tag-azure","tag-logic-apps"],"_links":{"self":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=797"}],"version-history":[{"count":5,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/797\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/797\/revisions\/844"}],"wp:attachment":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}