{"id":26997,"date":"2020-12-15T13:35:28","date_gmt":"2020-12-15T13:35:28","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=26997"},"modified":"2022-03-16T06:39:44","modified_gmt":"2022-03-16T06:39:44","slug":"describe-polling-triggers-and-their-usage","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/","title":{"rendered":"Describe Polling Triggers and their Usage"},"content":{"rendered":"\n<p>We may define a polling trigger as an event that periodically makes a call to your service to look for new data. Further, the Polling triggers vary from webhooks in follwoing way &#8211; <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>At first, a polling trigger begins an event to find if new data is available<\/li><li>Next, a webhooks respond to a push of new data from the service. Once the flow determines that new data is available, you can then perform an action with that data. <\/li><\/ul>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"prerequisites\"><strong>Pre-requirements <\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li>First, a&nbsp;Power Automate&nbsp;subscription.<\/li><li>Second, basic experience building&nbsp;flows&nbsp;and&nbsp;custom connectors.<\/li><li>Lastly, a free&nbsp;Postman app&nbsp;<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"how-polling-triggers-work\"><strong>Working of a Polling Triggers <\/strong><\/h4>\n\n\n\n<p>To begin with, a polling trigger starts by setting a state, then periodically checks for updates over an interval. Thereafter, the trigger then requests all the new data since the last state update. Additionally, the trigger also maintains the state context between requests.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>At first, the flow runtime requests an initial call on the trigger to the API in the connector.<\/li><li>In the second step, the connector will then call the backend service.<\/li><li>Then, the backend service returns all of the current data back to the connector.<\/li><li>In the next step, the connector, in turn, returns a 202 Accepted message, a retry interval, and a location header that includes the current state. <\/li><li>Once the retry interval times out, the flow runtime makes another call to the connector using the location header and current state.<\/li><li>Further, the connector now knows, since this state is now equal to 1, to call the proper API that will do the appropriate filtering to ensure the correct set of data returned. <\/li><li>Next, there is no new data since the create date, so an empty set of values is sent back to the connector.<\/li><li>Then, the connector then returns a 202 Accepted message, a retry interval, and a location header in which the state hasn&#8217;t changed.<\/li><li>After the retry interval times out again, the flow runtime makes another call to the connector using the same location header and state.<\/li><li>Again, the connector does the appropriate filtering using the create date.<\/li><li>Now, new data has become available since the create date, so the backend returns the values of all the new data back to the connector.<\/li><li>Thereafter, the connector then returns a 200 OK message, a retry interval, the location with a new state value, and an array of values containing all of the new data is available after the create date. <\/li><li>Lastly, at this point, the flow will start.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"use-the-polling-trigger\"><strong>Use the Polling Trigger<\/strong><\/h4>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/connectors\/custom-connectors\/media\/create-polling-trigger\/polling-test-search.png\" alt=\"Search for the polling trigger\"\/><figcaption>Source: Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>After everything is configured, we can use the polling trigger in a flow. We will learn to create a flow that will poll the backend service for changes whenever a new trip is recorded for a particular person.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>First Step &#8211; <\/strong><ul><li>In\u00a0flow.microsoft.com, on the left side of the page, choose\u00a0Create.<\/li><\/ul><\/li><li><strong>Second Step &#8211;<\/strong><ul><li>Under\u00a0Start from blank, choose\u00a0Instant flow.<\/li><\/ul><\/li><li><strong>Third Step &#8211; <\/strong><ul><li>In the\u00a0Build an instant flow\u00a0dialog, select the\u00a0Skip\u00a0button.<\/li><\/ul><\/li><li><strong>Fourth Step &#8211; <\/strong><ul><li>In the search box, enter\u00a0Triggers when a new trip is added.<\/li><\/ul><\/li><li><strong>Fifth Step &#8211; <\/strong><ul><li>In the\u00a0Person\u00a0flow box, enter\u00a0russellwhyte\u00a0for the person whose trips you&#8217;ll examine, and then select\u00a0+ New step.<\/li><\/ul><\/li><li><strong>Sixth Step &#8211; <\/strong><ul><li>In the\u00a0Choose an action\u00a0dialog, select the\u00a0Built-in\u00a0tab, and then select\u00a0Date Time.<\/li><\/ul><\/li><li><strong>Seventh Step &#8211; <\/strong><ul><li>From\u00a0Date Time, select\u00a0Current time.<\/li><\/ul><\/li><li><strong>Eighth Step &#8211; <\/strong><ul><li>Select\u00a0Save\u00a0to save the new flow.<\/li><\/ul><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"verification-and-troubleshooting\"><strong>Verification and Troubleshooting<\/strong><\/h4>\n\n\n\n<p>Use the following steps to conduct the verification and troubleshooting  &#8211;<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/connectors\/custom-connectors\/media\/create-polling-trigger\/polling-post-request.png\" alt=\"Send the POST message\"\/><figcaption>Source: Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>In order to verify everything has been set up correctly, firstly choose&nbsp;My flows<\/li><li>Then select the&nbsp;Triggers when a new trip is added -&gt; Current time&nbsp;flow to view the run history. <\/li><li>To test the flow, you&#8217;ll need to open the Postman application to add new data to TripPin.<\/li><li>In Postman, select the&nbsp;<strong>+<\/strong>&nbsp;icon next to the&nbsp;Launchpad&nbsp;tab.<\/li><li>In the untitled request, select&nbsp;POST&nbsp;from the drop-down box on the left, and then enter the following address in&nbsp;Enter request URL&nbsp;box<\/li><li>Under the POST request, select the&nbsp;Body&nbsp;tab, and then choose&nbsp;raw. In the dropdown to the right of&nbsp;raw, choose&nbsp;JSON.<\/li><li>Enter the following text in the text box:<\/li><\/ul>\n\n\n\n<p><strong>Learn more about <a href=\"https:\/\/docs.microsoft.com\/en-us\/connectors\/custom-connectors\/create-polling-trigger\" target=\"_blank\" rel=\"noreferrer noopener\">Triggers and their Requirements<\/a><\/strong><\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-power-platform-fundamentals-pl-900-free-practice-test\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/testpreptraining.ai-4-750x117.png\" alt=\"PL-900 Free Practice Test\"\/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We may define a polling trigger as an event that periodically makes a call to your service to look for new data. Further, the Polling triggers vary from webhooks in follwoing way &#8211; At first, a polling trigger begins an event to find if new data is available Next, a webhooks respond to a push&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-26997","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Describe Polling Triggers and their Usage - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Boost your learning and get ready to qualify Microsoft Power Platform Fundamentals (PL-900) Exam. Learn about Polling Trigger and its uses!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Describe Polling Triggers and their Usage - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Boost your learning and get ready to qualify Microsoft Power Platform Fundamentals (PL-900) Exam. Learn about Polling Trigger and its uses!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-16T06:39:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.microsoft.com\/en-us\/connectors\/custom-connectors\/media\/create-polling-trigger\/polling-test-search.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/\",\"name\":\"Describe Polling Triggers and their Usage - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-12-15T13:35:28+00:00\",\"dateModified\":\"2022-03-16T06:39:44+00:00\",\"description\":\"Boost your learning and get ready to qualify Microsoft Power Platform Fundamentals (PL-900) Exam. Learn about Polling Trigger and its uses!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Describe Polling Triggers and their Usage\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Describe Polling Triggers and their Usage - Testprep Training Tutorials","description":"Boost your learning and get ready to qualify Microsoft Power Platform Fundamentals (PL-900) Exam. Learn about Polling Trigger and its uses!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/","og_locale":"en_US","og_type":"article","og_title":"Describe Polling Triggers and their Usage - Testprep Training Tutorials","og_description":"Boost your learning and get ready to qualify Microsoft Power Platform Fundamentals (PL-900) Exam. Learn about Polling Trigger and its uses!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-16T06:39:44+00:00","og_image":[{"url":"https:\/\/docs.microsoft.com\/en-us\/connectors\/custom-connectors\/media\/create-polling-trigger\/polling-test-search.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/","name":"Describe Polling Triggers and their Usage - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-12-15T13:35:28+00:00","dateModified":"2022-03-16T06:39:44+00:00","description":"Boost your learning and get ready to qualify Microsoft Power Platform Fundamentals (PL-900) Exam. Learn about Polling Trigger and its uses!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-polling-triggers-and-their-usage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Describe Polling Triggers and their Usage"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/26997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=26997"}],"version-history":[{"count":6,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/26997\/revisions"}],"predecessor-version":[{"id":52932,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/26997\/revisions\/52932"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=26997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=26997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=26997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}