{"id":5154,"date":"2019-04-16T09:47:21","date_gmt":"2019-04-16T14:47:21","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=5154"},"modified":"2019-04-15T16:04:58","modified_gmt":"2019-04-15T21:04:58","slug":"did-you-know-you-can-add-manager-approvals-in-microsoft-flow","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5154","title":{"rendered":"Did you know \u2026 you can add manager approvals in Microsoft Flow?"},"content":{"rendered":"<p>In my previous post, I demonstrated how the Office 365 User search could be used to record a Form responder\u2019s email address instead of their logon ID. But other information about the user is available too \u2013 including their <em>manager<\/em>. This means you can use Flow to build workflows that require manager approval where \u201cmanager\u201d is dynamically determined. How?<\/p>\n<p>Select the \u201cGet manager (V2)\u201d action from the \u201cOffice 365 User\u201d connector.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"809\" height=\"550\" class=\"wp-image-5155\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/04\/word-image-74.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-74.png 809w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-74-300x204.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-74-768x522.png 768w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/p>\n<p>In this example, I am extending the sample workflow that creates a SPO list item from a Forms submission. I have inserted a step after getting the responder\u2019s profile information. Click in the \u201cUser (UPN)\u201d and select the input that contains the responder\u2019s account (which, again, Forms calls an e-mail address)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1323\" height=\"745\" class=\"wp-image-5156\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/04\/word-image-75.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-75.png 1323w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-75-300x169.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-75-768x432.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-75-1024x577.png 1024w\" sizes=\"auto, (max-width: 1323px) 100vw, 1323px\" \/><\/p>\n<p>Insert a new action<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"928\" height=\"471\" class=\"wp-image-5157\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/04\/word-image-76.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-76.png 928w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-76-300x152.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-76-768x390.png 768w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/p>\n<p>Search for and select \u201cApprovals\u201d and then select the \u201cStart and wait for an approval (V2)\u201d action.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"769\" class=\"wp-image-5158\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/04\/word-image-77.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-77.png 813w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-77-300x284.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-77-768x726.png 768w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/p>\n<p>Click the drop-down for \u201cApproval type\u201d \u2013 since I am only adding a single approver, the first two options are essentially the same. I can, however, use \u201cEveryone must approve\u201d to have more than one level of manager required for approval, or a manager plus static application owner.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"331\" class=\"wp-image-5159\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/04\/word-image-78.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-78.png 835w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-78-300x119.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-78-768x304.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>To assign the approval, find the dynamic content from the manager lookup and select \u201cMail\u201d from that section. Add details that will appear in the approval notification \u2013 something to clearly explain what the person is approving.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1249\" height=\"458\" class=\"wp-image-5160\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/04\/word-image-79.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-79.png 1249w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-79-300x110.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-79-768x282.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-79-1024x375.png 1024w\" sizes=\"auto, (max-width: 1249px) 100vw, 1249px\" \/><\/p>\n<p>Save your workflow. Now when a Form response is submitted, the responder\u2019s manager will receive an e-mail which allows them to approve or reject the request.<\/p>\n<p>If they use the Flow site, they will see the approval in their Approvals section.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"905\" height=\"610\" class=\"wp-image-5161\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/04\/word-image-80.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-80.png 905w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-80-300x202.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/04\/word-image-80-768x518.png 768w\" sizes=\"auto, (max-width: 905px) 100vw, 905px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post, I demonstrated how the Office 365 User search could be used to record a Form responder\u2019s email address instead of their logon ID. But other information about the user is available too \u2013 including their manager. This means you can use Flow to build workflows that require manager approval where \u201cmanager\u201d &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[677],"tags":[689,688,415,747,748],"class_list":["post-5154","post","type-post","status-publish","format-standard","hentry","category-office-365","tag-microsoft-flow","tag-microsoft-forms","tag-sharepoint","tag-sharepoint-online","tag-spo"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5154"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5154\/revisions"}],"predecessor-version":[{"id":5162,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5154\/revisions\/5162"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}