{"id":5048,"date":"2020-01-07T10:28:38","date_gmt":"2020-01-07T18:28:38","guid":{"rendered":"https:\/\/www.microsoft.com\/insidetrack\/blog\/?p=5048"},"modified":"2023-06-25T12:50:10","modified_gmt":"2023-06-25T19:50:10","slug":"how-retooling-invoice-processing-is-fueling-transformation-inside-microsoft","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/insidetrack\/blog\/how-retooling-invoice-processing-is-fueling-transformation-inside-microsoft\/","title":{"rendered":"How retooling invoice processing is fueling transformation inside Microsoft"},"content":{"rendered":"

\"MicrosoftUntil recently, processing incoming invoices at Microsoft was a patchwork, largely manual process, owing to the 20-year-old architecture and business processes on which the invoicing system was built.<\/p>\n

The existing Microsoft Invoice platform allowed only manual invoice submission. External suppliers and internal users in Microsoft\u2019s Accounts Payable (AP) Operations team could either email a scanned invoice or PDF, manually enter information into a web portal, or use that portal to bulk-upload invoices using a formatted Microsoft Excel template.<\/p>\n

In some countries or regions with complex requirements, the AP Operations team is required to manually enter paper invoices directly into SAP, Microsoft\u2019s financial system of record. The system worked, but it was inefficient.<\/p>\n

Compared to the wider digital transformation at Microsoft, the inefficiency was glaring. Across the company, manual processes are being replaced with automated processes so that employees can focus on more impactful work. The Invoice Service team, which sits in the Microsoft Digital organization, saw an opportunity in the invoice processing system to modernize.<\/p>\n

The goal was to trigger the creation of invoices using simple signals, like when purchased goods were received.<\/p>\n

\u201cWe started with a question,\u201d says James Bolling, principal group engineering manager for the Microsoft Invoice Service team. \u201cHow do we trigger invoices so that a supplier can just call our API and generate the invoice in a system-to-system call? How do we automate approval based on purchase order and invoice and receipting information?\u201d<\/p>\n

[Read about how we are digitizing contract management.<\/a> Learn how we are using anomaly detection to automate royalty payments.<\/a> Microsoft has built a modern service architecture for its Procure-to-Pay systems\u2014read about it here.<\/a>]<\/em><\/p>\n

Lower costs, increased speed, and improved compliance<\/strong><\/p>\n

The Invoice Service team is responsible for the entirety of invoicing at Microsoft, Bolling says. The system it maintains integrates tightly with purchase orders related to goods and services from all Microsoft suppliers. The AP Operations team is tasked with ensuring that every payment adheres to relevant payment terms and service-level agreements.<\/p>\n

The team also must maintain airtight compliance for the more than 120 countries and regions in which Microsoft conducts business, which accounts for about 1.8 million invoices per year and some USD60 billion in spend, according to Bolling.<\/p>\n

The opportunity to lower operating costs by increasing speed and reducing the possibility of human error was enticing, but it wasn\u2019t until the team began tackling a separate project that the scope of what it was about to undertake was clear.<\/p>\n

Rewriting a 20-year-old legacy system<\/strong><\/p>\n

While working on a tax project, Shweta Udhoji and Guru Balasubramanian, both of them program managers on the Invoice Service team, spoke to customers and partners who used the legacy system regularly. Those conversations revealed the scale of the problem. Roughly 35,000 invoices were being submitted via email every month, with several thousand more coming in through the web portal.<\/p>\n

Because validation paths are required for each intake method, they were present in duplicate or triplicate, creating redundancy that made it difficult to add a simple modification. Each change had to be applied to each method individually.<\/p>\n

\u201cThe processes are more than 20 years old, and any extensions due to changing global compliance requirements or any other business needs that come in from our partner teams were very difficult to accommodate,\u201d Udhoji says. \u201cWe wanted to simplify that.\u201d<\/p>\n

To make matters worse, the team couldn\u2019t rely on documentation for a 20-year-old architecture as they looked for temporary fixes to get the time-sensitive tax updates out the door.<\/p>\n

\u201cWe didn\u2019t have any documentation to look at, so we had to test extensively, and once we started testing, we started seeing a lot of problems,\u201d Udhoji says.<\/p>\n

The road to the Modern Invoice API<\/strong><\/p>\n

Quick fixes wouldn\u2019t solve the underlying problems of the legacy architecture. The team realized that it would need to be completely rewritten to adhere to modern standards.<\/p>\n

The Modern Invoice API became a critical component of the broader effort to automate invoice creation and submission where possible. For partners and suppliers for whom manual intake methods are sufficient (or where paper invoices are required by law), those methods would largely remain intact, with some process optimizations added for efficiency. For Microsoft\u2019s largest partners and suppliers, the API would automate the invoice creation and submission process.<\/p>\n

\u201cWe knew we could make a huge impact on processing time and the manual effort required to process an invoice. We just needed to automate the process,\u201d Udhoji says.<\/p>\n

Because business needs change so much faster today than they did 20 years ago, the API was a business decision as well as a technical one. Modifications and extensions would need to be easy to add to keep up.<\/p>\n

\u201cWhat we were building with the Modern API was a framework for better automation, quicker changes, easier automation,\u201d says Bryan Wilhelm, senior software engineer on the Modern Invoice API project.<\/p>\n

Bridging legacy and modern systems<\/strong><\/p>\n

The challenge that the team faced was daunting and delicate. Because all invoice processing ran through the legacy architecture, there could be no interruptions in service\u2014business must continue as usual, all over the world. The team also needed to be responsive to constantly shifting local compliance laws, too, adding modifications without downtime.<\/p>\n

\u201cWe had to first understand the domain, the business requirements, and the technical side of it, while at the same time maintaining the legacy tool and thinking about how to re-imagine the invoice experience,\u201d Balasubramanian says.<\/p>\n

The team started by building a hybrid architecture model (as illustrated in the following diagram) on top of the legacy system; initially, the API would simply call the legacy invoice creation pipeline. By integrating with the existing process and building a wrapper on top of it, the legacy system would continue to function without interruption. With so many business rules and validation processes to consider, it would\u2019ve taken a considerable amount of time to write an end-to-end process from scratch.<\/p>\n

The iterative approach meant that the team could ship a working API, complete with integration with the legacy system, in just eight weeks. That left more time to gather and integrate early feedback from partners and suppliers while at the same time modernizing the underlying invoice processing pipeline.<\/p>\n

Using Microsoft Azure and cXML for interoperability<\/strong><\/p>\n

The legacy system runs on Windows Server 2016 and SQL Server on-premises in Azure Infrastructure as a Service Virtual Machines, so the team leveraged SQL Datasync for synchronization between Azure SQL and on-premises SQL Server, and Azure Service Bus messaging for communication between the two systems. The API microservice was built as an Azure function.<\/p>\n

\"Diagram
The hybrid architecture used to create the Modern Invoice API maintains functionality between the old and new systems.<\/figcaption><\/figure>\n

For two reasons, the team chose to adopt the commerce eXtensible Markup Language (cXML) protocol to enable communication between documents. First, cXML is compliant with existing Microsoft business rules out of the box. \u201cAll the gaps we saw that were missing in the legacy system were accounted for in cXML,\u201d Wilhelm says.<\/p>\n

Second, cXML has a robust community; thus, extensive documentation and support already existed, including around the business rules inherent to the cXML protocol.<\/p>\n

Automation\u2019s immediate impact<\/strong><\/p>\n

The Modern Invoice API went live globally to internal partners in August, and to date USD85 million worth of invoices have been sent using the API. As the API project evolves to encompass a greater share of all invoice processing, that touchless invoice submission and approval will lower operating costs and eliminate inefficiencies both for internal teams and for Microsoft vendors and partners across the globe.<\/p>\n

Prior to the API, the Microsoft Corporate, External, and Legal Affairs (CELA) team used the web portal in conjunction with an internal tool that tracks US work visa workflows. Microsoft sponsors a significant number of employees who are in the United States on work visas, and the CELA team tracks the status of those visas and submits payment to U.S. Citizenship and Immigration Services (USCIS).<\/p>\n

The old process involved running a report with the team\u2019s internal tool to find out which visas required payment. They then used that information to populate an Excel template and submit the invoice in the web portal. Because the team processes tens of thousands of checks per year, the time wasted in this process added up.<\/p>\n

CELA became one of the first groups to fully implement integration with the API, modifying its internal tool<\/a> to call the API and automatically submit checks to file USCIS cases. By managing the process end to end within the same system, the team has seen a reduction in the resources required to order daily checks and gained complete visibility into what checks are being ordered and why.<\/p>\n

Modernizing for today and tomorrow<\/strong><\/p>\n

Like CELA, business partners and suppliers who submit thousands of invoices per year to Microsoft had to build and manually upload formatted Excel files to a web portal. In creating the foundation for the Modern Invoice API, the team also laid the groundwork for other automated invoice submission and creation methods such as the SAP Evaluated Receipt Settlement (ERS) process. In addition to adding support for 20 countries\/regions that the legacy system simply didn\u2019t (or couldn\u2019t) support, these combined automation efforts mean that as much as 70 percent of the 1.8 million invoices submitted to Microsoft every year will be generated via automated, system-to-system calls.<\/p>\n

New capabilities are in the pipeline, too. Supporting documentation can be attached to invoices using the new API, which wasn\u2019t possible before. The team is also working on integrating Microsoft\u2019s financial systems with those of GitHub, a recent Microsoft acquisition, to increase the speed of integration of future acquisitions. The API provides a simpler way to migrate the GitHub invoice system to Microsoft systems and components. \u201cIt would\u2019ve been a crazy modification in the classic system,\u201d Udhoji notes. Future acquisitions and integrations will be similarly affected as the API standardizes the process of invoice system migration.<\/p>\n

In addition to the four tenants already using the Modern Invoice API, six more tenant groups are slated to be added by the end of the fiscal year, with an external rollout to Microsoft\u2019s biggest external suppliers not far behind.<\/p>\n

Creating, submitting, and approving more than 1.8 million invoice transactions every year required significant manual efforts for Microsoft and its payees. All told, the manual processes added up to 300,000 hours of work, according to Luciana Siciliano, Finance Operations director and global process owner.<\/p>\n

\u201cOur internal business groups no longer have to manually touch these invoices to get them into our enterprise invoice system and move them forward to complete the payout,\u201d she says. \u201cThrough automated intake, receipting, and approval solutions, we can drive quick-turnaround solutions that are centered on our users.”<\/p>\n

\"Related<\/p>\n