{"id":359,"date":"2023-01-31T18:42:00","date_gmt":"2023-01-31T18:42:00","guid":{"rendered":"https:\/\/automatethemundane.com\/index.php\/2023\/01\/31\/bpf-move-process-forward\/"},"modified":"2023-06-18T21:37:01","modified_gmt":"2023-06-18T21:37:01","slug":"bpf-move-process-forward","status":"publish","type":"post","link":"https:\/\/automatethemundane.com\/index.php\/2023\/01\/31\/bpf-move-process-forward\/","title":{"rendered":"BPF-Move Process Forward"},"content":{"rendered":"\n<p class=\"has-text-color\" style=\"color: rgba(120, 119, 116, 1)\">1\/31\/2023<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n<h1 class=\"wp-block-heading\">The Why<\/h1>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">In a MDA the need to move a business process forward without have a user do anything is a great feature. This guide will show how to move a BPF forward using Power Automate when a change occurs us. I used Power Automate vs the client side java script so I could tie the action into notifications. This BPF is built in a way that each step is done by a different party, so the need for immediate change was not needed. <\/p>\n\n\n<h1 class=\"wp-block-heading\">The How<\/h1>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">This flow will be built using a modify for a Dataverse table<\/p>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">Create a new flow, configure the trigger to be a Dataverse modify<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/automatethemundane.com\/wp-content\/uploads\/2023\/06\/image-41.png\" alt=\"\"\/><\/figure>\n\n\n<p class=\"has-background\" style=\"background-color: rgb(241, 241, 239)\">&#x1f4a1; Its is recommended to use the select columns for this action so only one column is watched. <\/p>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">Use a List rows action and find the BPF associated with the table<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/automatethemundane.com\/wp-content\/uploads\/2023\/06\/image-42.png\" alt=\"\"\/><\/figure>\n\n\n<p class=\"has-background\" style=\"background-color: rgb(241, 241, 239)\">&#x1f4a1; This solution is using an Activity table as an example<\/p>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">The Filter rows will be the ID from the trigger<\/p>\n\n\n<pre class=\"wp-block-code\"><code>_bpf_<span style=\"color: rgba(212, 76, 71, 1)\">triggertable<\/span>_value eq &#039;@{triggerOutputs()?[&#039;body\/activityid&#039;]}&#039;<\/code><\/pre>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">Now you need to get the process ID for the business process flow<\/p>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\"><a href=\"https:\/\/automatethemundane.com\/index.php\/2023\/01\/30\/get-stage-id-for-business-process-flows\/\">Get Stage ID for Business Process Flows<\/a><\/p>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">Once you have the stage ID you need, create a variable with the string in it<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/automatethemundane.com\/wp-content\/uploads\/2023\/06\/image-43.png\" alt=\"\"\/><\/figure>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">Add a update Row action <\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/automatethemundane.com\/wp-content\/uploads\/2023\/06\/image-44.png\" alt=\"\"\/><\/figure>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">For the row ID use a First to filter and avoid a loop<\/p>\n\n\n<pre class=\"wp-block-code\"><code>first(outputs(&#039;List_rows_-_BPF&#039;)?[&#039;body\/value&#039;])?[&#039;businessprocessflowinstanceid&#039;]<\/code><\/pre>\n\n\n<p class=\"has-text-color\" style=\"color: rgb(0, 0, 0)\">Use the format for Active Stage to select the new business process step. <\/p>\n\n\n<h1 class=\"wp-block-heading\">Resources<\/h1>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/automatethemundane.com\/wp-content\/uploads\/2023\/06\/image-46.png\" alt=\"\"\/><\/figure>\n\n","protected":false},"excerpt":{"rendered":"<p>1\/31\/2023 The Why In a MDA the need to move a business process forward without have a user do anything is a great feature. This guide will show how to move a BPF forward using Power Automate when a change occurs us. I used Power Automate vs the client side java script so I could [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,6,30],"tags":[25],"class_list":["post-359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-process-flow","category-model-driven-app","category-power-automate","tag-dataverse","entry","has-media"],"jetpack_featured_media_url":"https:\/\/automatethemundane.com\/wp-content\/uploads\/2023\/06\/cover-8-scaled.jpg","_links":{"self":[{"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":1,"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":384,"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/posts\/359\/revisions\/384"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/media\/262"}],"wp:attachment":[{"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/automatethemundane.com\/index.php\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}