Skip to main content
BI4ALL BI4ALL
  • Expertise
    • Artificial Intelligence
    • Data Strategy & Governance
    • Data Visualisation
    • Low Code & Automation
    • Modern BI & Big Data
    • R&D Software Engineering
    • PMO, BA & UX/ UI Design
  • Knowledge Centre
    • Blog
    • Industry
    • Customer Success
    • Tech Talks
  • About Us
    • Board
    • History
    • Partners
    • Awards
    • Media Centre
  • Careers
  • Contacts
English
GermanPortuguês
Last Page:
    Knowledge Center
  • Microsoft Power Automate in the accounts receivable process

Microsoft Power Automate in the accounts receivable process

Página Anterior: Blog
  • Knowledge Center
  • Blog
  • Fabric: nova plataforma de análise de dados
1 Junho 2023

Fabric: nova plataforma de análise de dados

Placeholder Image Alt
  • Knowledge Centre
  • Microsoft Power Automate in the accounts receivable process
1 March 2024

Microsoft Power Automate in the accounts receivable process

Microsoft Power Automate in the accounts receivable process

Key takeways

Power Automate's versatility

Integration with On-Premises Systems

Customer Communications Automation

Power Automate is a versatile process automation platform by Microsoft that allows businesses to streamline and optimise their operations.

Its application covers a wide range of scenarios, from managing approvals to automating document processes and integrating with Microsoft 365, Power Platform, or Azure.

In this article, I will take through building a process to automate the sending of e-mails to customers, prompting them from payment.

Before getting into Power Automate, I prepared a couple of views in the ERP’s system SQL Database, where the data on Accounts Receivable is stored.

These views will show customers who have any amount outstanding in their balance and how much of that, if any, is due. Also, they will hold a complete list of outstanding invoices.

The Power Automate flow starts by fetching the view of customers with outstanding amounts. Since this ERP system is on-premises, we will be leveraging the On-Premisses Gateway from Microsoft, which needs to be installed prior to building the flow.

Fig.1: SQL Server Get Rows (V2) Action

 

Now that we have our list of customers and before getting into it, we need to initialise a variable to use further down the line:

  • A variable to hold the e-mail or e-mails to use as the recipient.

Next, we will be iterating through the list of customers, looking for those with past due outstanding invoices and for each of those we will be looking at the view which holds all outstanding invoices and getting the ones corresponding to each customer.

Fig.2:  Apply to Each Action

 

In this list of Outstanding Invoices, there are two date columns, Issue Date and Due Date, and since these are returned in a Date Time format (e.g., 2024-02-16 T00:00:00Z), we need to convert them to a more user-friendly format, we introduce a few steps to transform Date Time to Date only:

  • Take the response from the SQL action and parse it.
  • Convert it to text and remove the Time part of the dates.
  • Reconvert it back to JSON.

Fig.3:  Data Manipulation actions

 

With that in place, we can now build an HTML Table to show all the Outstanding Invoices.

As we draw close to the end of our process, it’s now time to get the e-mail or e-mails (depending on the requirements) to which we are sending our prompts for payment. In this scenario, we are using Microsoft Dynamics 365 as our CRM system, and the contacts need to be fetched from there. For that, we will be asking Dynamics to give us the contacts for each customer in this loop:

  • List Accounts, filtering by the current ERP account.
  • List Contacts, filtering by the above retrieved account.
  • Get all gathered e-mails in the variable above initialised.

Fig.4:  Looping through accounts and contacts

 

At this point, we already have a list of outstanding invoices and the e-mails’ recipients. Let’s build the e-mail:

  • Input the variable holding the e-mails in the “To” field.
  • Give it a good Subject.
  • Write the Body and insert the HTML table and the e-mail signature.

Fig.5:  Send an e-mail action

 

The result is a beautiful e-mail, fully automated that you can schedule to be sent on any given criteria.

Fig.6:  Sent e-mail

 

Should you have any questions or require any assistance in streamlining and automating processes, feel free to reach out.

Author

Jorge Daniel

Jorge Daniel

Power Plataform Solution Architect Expert

Share

Suggested Content

Data sovereignty: the strategic asset for businesses Blog

Data sovereignty: the strategic asset for businesses

In 2025, data sovereignty has become the new engine of competitiveness — turning massive volumes of information into innovation, efficiency, and strategic advantage.

Modern Anomaly Detection: Techniques, Challenges, and Ethical Considerations Blog

Modern Anomaly Detection: Techniques, Challenges, and Ethical Considerations

Anomaly Detection identifies unusual data patterns to prevent risks, using machine learning techniques

Optimising Performance in Microsoft Fabric Without Exceeding Capacity Limits Blog

Optimising Performance in Microsoft Fabric Without Exceeding Capacity Limits

Microsoft Fabric performance can be optimised through parallelism limits, scaling, workload scheduling, and monitoring without breaching capacity limits.

Metadata Frameworks in Microsoft Fabric: YAML Deployments (Part 3) Blog

Metadata Frameworks in Microsoft Fabric: YAML Deployments (Part 3)

YAML deployments in Microsoft Fabric use Azure DevOps for validation, environment structure, and pipelines with approvals, ensuring consistency.

Metadata Frameworks in Microsoft Fabric: Logging with Eventhouse (Part 2) Blog

Metadata Frameworks in Microsoft Fabric: Logging with Eventhouse (Part 2)

Logging in Microsoft Fabric with Eventhouse ensures centralised visibility and real-time analysis of pipelines, using KQL for scalable ingestion.

Simplifying Metadata Frameworks in Microsoft Fabric with YAML Blog

Simplifying Metadata Frameworks in Microsoft Fabric with YAML

Simplify metadata-driven frameworks in Microsoft Fabric with YAML to gain scalability, readability, and CI/CD integration.

video title

Lets Start

Got a question? Want to start a new project?
Contact us

Menu

  • Expertise
  • Knowledge Centre
  • About Us
  • Careers
  • Contacts

Newsletter

Keep up to date and drive success with innovation
Newsletter

2025 All rights reserved

Privacy and Data Protection Policy Information Security Policy
URS - ISO 27001
URS - ISO 27701
Cookies Settings

BI4ALL may use cookies to memorise your login data, collect statistics to optimise the functionality of the website and to carry out marketing actions based on your interests.
You can customise the cookies used in .

Cookies options

These cookies are essential to provide services available on our website and to enable you to use certain features on our website. Without these cookies, we cannot provide certain services on our website.

These cookies are used to provide a more personalised experience on our website and to remember the choices you make when using our website.

These cookies are used to recognise visitors when they return to our website. This enables us to personalise the content of the website for you, greet you by name and remember your preferences (for example, your choice of language or region).

These cookies are used to protect the security of our website and your data. This includes cookies that are used to enable you to log into secure areas of our website.

These cookies are used to collect information to analyse traffic on our website and understand how visitors are using our website. For example, these cookies can measure factors such as time spent on the website or pages visited, which will allow us to understand how we can improve our website for users. The information collected through these measurement and performance cookies does not identify any individual visitor.

These cookies are used to deliver advertisements that are more relevant to you and your interests. They are also used to limit the number of times you see an advertisement and to help measure the effectiveness of an advertising campaign. They may be placed by us or by third parties with our permission. They remember that you have visited a website and this information is shared with other organisations, such as advertisers.

Política de Privacidade