{"id":26191,"date":"2021-01-04T14:27:00","date_gmt":"2021-01-04T14:27:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=26191"},"modified":"2021-01-06T08:06:41","modified_gmt":"2021-01-06T08:06:41","slug":"invoice-approval-process-using-microsoft-teams-and-ai-model-part-1","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/01\/invoice-approval-process-using-microsoft-teams-and-ai-model-part-1\/","title":{"rendered":"Invoice Approval Process Using Microsoft Teams and AI Model \u2013 Part 1"},"content":{"rendered":"<h1>Introduction<\/h1>\n<p style=\"text-align: justify;\">This blog is a 2-part series that will connect you with the whole invoice approval request automation flow from start to end:<\/p>\n<p style=\"text-align: justify;\">Part 1 &#8211; Route an email to external services and create an invoice approval request in Microsoft Teams<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/01\/invoice-approval-process-using-microsoft-teams-and-ai-model-part-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">Part 2<\/a> &#8211; Operate the AI model in automated flow along with enabling the actions (approve and reject) for invoice request and create the invoice in CRM once the request is approved in Microsoft Teams<\/p>\n<p style=\"text-align: justify;\">In part 1, we will see how we can route an email to external services and create an invoice approval request in Microsoft Teams.<\/p>\n<p style=\"text-align: justify;\">We all are already aware that Power Platform is a powerful low code platform that helps us build intelligent applications and automation even as a business user, without being a professional developer or data architect. We know from studies that the automation of invoice processes can lower the cost associated with possible human errors by almost more than 5x.<\/p>\n<p style=\"text-align: justify;\">This starts in the shared inbox when new invoices are received. The key mechanism here is, instead of manually sending an invoice approval request to relevant stakeholders, behind the scenes we will use Power Automate to send an approval request to the right stakeholder automatically in Microsoft Teams. Going forward, we will see how we can add more powerful automation along the way without knowing how to code. Let\u2019s start by using Power Automate which is a visual workflow engine included in office 365.<\/p>\n<p style=\"text-align: justify;\">In our scenario, since an incoming email with an invoice is going to trigger the approval process, we will look forward to adding an automated flow that will run every time an email arrives with an invoice.<\/p>\n<p style=\"text-align: justify;\">Let\u2019s step by step build the standard invoice processing workflow using Power Automate:<\/p>\n<p style=\"text-align: justify;\">You could see there are many built-in triggers available. From the list, we will choose the one where a new email shows up. You can select any of the available email services based on the requirement. For instance, we are picking up Outlook.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/office-365-outlook-1.png\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-26297\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/office-365-outlook-1-1024x649.png\" alt=\"office 365 outlook\" width=\"665\" height=\"421\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/office-365-outlook-1-1024x649.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/office-365-outlook-1-300x190.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/office-365-outlook-1-768x487.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/office-365-outlook-1-660x418.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/office-365-outlook-1.png 1130w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">We have just created a flow that will monitor a shared inbox. For this, we need to make sure that the connection is added as shown below.<\/p>\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> This is the inbox that will receive an email with an invoice<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/recieve-email-2.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26295 size-large\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/recieve-email-2-1024x277.png\" alt=\"receive an email\" width=\"665\" height=\"180\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/recieve-email-2-1024x277.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/recieve-email-2-300x81.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/recieve-email-2-768x208.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/recieve-email-2-660x178.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/recieve-email-2.png 1062w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Expanding advanced options will further show you the below options along with the respective filters. We will set a filter on the below action to trigger the workflow only if an email has the attachment. If required, we can also specify the additional filters depending on the requirement however let\u2019s keep it simple for now for an easy understanding.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/attachments-3.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26294 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/attachments-3.png\" alt=\"attachments\" width=\"768\" height=\"582\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/attachments-3.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/attachments-3-300x227.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/attachments-3-660x500.png 660w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Let\u2019s add a new step with an appropriate connector which will help us integrate with other apps, services and data where the actions will invoke within this connector. Since we want the flow to route an invoice email to the approval team in Microsoft Teams, we will add a \u201cTeams\u201d connector and route the invoice to a channel in Teams. Power automate is natively integrated with \u201cTeams\u201d which is why teams and channels within them show up automatically<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-4.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26293 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-4.png\" alt=\"teams\" width=\"800\" height=\"473\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-4.png 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-4-300x177.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-4-768x454.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-4-660x390.png 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-5.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26292 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-5.png\" alt=\"post a message\" width=\"796\" height=\"520\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-5.png 796w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-5-300x196.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-5-768x502.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-5-660x431.png 660w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/pharma-6.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26291 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/pharma-6.png\" alt=\"pharma\" width=\"783\" height=\"396\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/pharma-6.png 783w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/pharma-6-300x152.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/pharma-6-768x388.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/pharma-6-660x334.png 660w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/channel-7.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26290 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/channel-7.png\" alt=\"channel\" width=\"786\" height=\"397\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/channel-7.png 786w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/channel-7-300x152.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/channel-7-768x388.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/channel-7-660x333.png 660w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">We can use the dynamic content in the message as shown below. Here we want to know from whom the invoice approval request is received in Teams, so we have selected dynamic content in the message.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-8.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26289 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-8.png\" alt=\"post a message\" width=\"780\" height=\"390\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-8.png 780w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-8-300x150.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-8-768x384.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/post-a-message-8-660x330.png 660w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Save the flow with the above steps. By far, we have successfully created a flow that will route an email to approver and create an invoice approval request message in the Microsoft Teams asking for the respective stakeholder\u2019s approval on the same. Let\u2019s see this in action by actually testing the automated flow.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/test-flow-9.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26288 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/test-flow-9.png\" alt=\"test flow\" width=\"395\" height=\"368\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/test-flow-9.png 395w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/test-flow-9-300x279.png 300w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-processing-10.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26287 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-processing-10.png\" alt=\"invoice processing\" width=\"804\" height=\"380\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-processing-10.png 804w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-processing-10-300x142.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-processing-10-768x363.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-processing-10-660x312.png 660w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Sender \u2013 sends an email with an invoice attached to the approver\/stakeholder<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/sender-11.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26286 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/sender-11.png\" alt=\"sender\" width=\"693\" height=\"637\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/sender-11.png 693w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/sender-11-300x276.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/sender-11-660x607.png 660w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">As soon as the above email is received in the inbox, the approver sees it in Teams.<\/p>\n<p style=\"text-align: justify;\">Email received in Outlook of approver\/stakeholder<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/email-reciever-12.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26285 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/email-reciever-12.png\" alt=\"email received\" width=\"812\" height=\"377\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/email-reciever-12.png 812w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/email-reciever-12-300x139.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/email-reciever-12-768x357.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/email-reciever-12-660x306.png 660w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Will be shown to the approver in Teams.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-13-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26283 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-13-1.png\" alt=\"teams\" width=\"914\" height=\"292\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-13-1.png 914w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-13-1-300x96.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-13-1-768x245.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/teams-13-1-660x211.png 660w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-approval-request-13-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26284 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-approval-request-13-1.png\" alt=\"invoice approval request\" width=\"676\" height=\"288\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-approval-request-13-1.png 676w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-approval-request-13-1-300x128.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/invoice-approval-request-13-1-660x281.png 660w\" sizes=\"(max-width: 676px) 100vw, 676px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p style=\"text-align: justify;\">With the help of the above steps, we have been able to route the email and create an invoice approval request in Microsoft Teams. We will see in the <a href=\"https:\/\/www.inogic.com\/blog\/2021\/01\/invoice-approval-process-using-microsoft-teams-and-ai-model-part-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">next blog<\/a> how we can parse and extract the data from sample invoices using AI builder and further use it in our automation flow in the future.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/add-manage-schedule-notifications-alerts-4-dynamics-365-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"alignnone wp-image-26211 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/A4D.jpg\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/A4D.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/A4D-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/A4D-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/A4D-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This blog is a 2-part series that will connect you with the whole invoice approval request automation flow from start to end: Part 1 &#8211; Route an email to external services and create an invoice approval request in Microsoft Teams Part 2 &#8211; Operate the AI model in automated flow along with enabling the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/01\/invoice-approval-process-using-microsoft-teams-and-ai-model-part-1\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1985],"tags":[2109,2108,1945],"class_list":["post-26191","post","type-post","status-publish","format-standard","hentry","category-power-automate","tag-ai-model","tag-invoice-approval-process","tag-microsoft-teams"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/26191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=26191"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/26191\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=26191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=26191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=26191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}