PP103 – Automated PO Confirmation Notifications in D365FO

image-39 PP103 – Automated PO Confirmation Notifications in D365FO

Introduction

In this article, we will explore how to set up an automated notification system for purchase order (PO) confirmations using Power Automate in conjunction with Dynamics 365 Finance and Operations (D365FO). The goal of this article is to retrieve managerial contact emails by connecting multiple different tables. While I will be taking a more detailed route by setting up conditions at the beginning, feel free to choose the method that best suits your needs.

Please note that I haven’t included extensive details under the “send an email” action. However, you can enhance the notifications by adding relevant information such as the PO amount, supplier name, delivery date, and the number of order lines. This will provide comprehensive insights to the procurement manager and director, facilitating more informed decision-making.

By following these steps, you will be able to create a powerful notification system that keeps your procurement managers and directors well-informed about PO confirmations, ensuring efficient and effective communication within your Organisation.


Step-by-Step Instructions to Create Power Automate Flow

Step 1: Trigger from Business Event

  1. Create a new flow:
  • Open Power Automate.
  • Click on Create and select Automated flow.

2. Set the trigger:

  • Search for When a Business Event occurs.
  • Select this trigger and click Create.

3. Configure the trigger:

  • Instance: Dynamics Environment URL
  • Category: Purchase Orders
  • Business Event: Select Purchase Order confirmed
  • Advanced Parameter : Select Legal Entity (Optional)

Step 2: Parse Data from Event

  1. Add Parse JSON action:
  • Click on + New step.
  • Search for Parse JSON and select it.

2. Configure the Parse JSON action:

  • Content: Select Body from the trigger output.
  • Schema: Click on Generate from sample, and provide a sample JSON payload that matches the expected structure of the business event data. For example:

Step 3: Add Condition

  • Condition is to run notification based on PO Amount
image-2 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4: Configure True Condition

Step 4.1: Compose PO Number

image-3 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.2: Get PO Record

Include Legal entity ID under object ID followed by comma and outputs

image-4 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.3: Compose Orderer Personnel Number

image-6 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.4: Get Worker Record

image-7 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.5: List Items in Position Table

image-8 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.6: Compose Woker Position ID

Note – compose action will create foreach branch

image-9 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.7: List Position ID from Job Position Dual Write

image-10 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.8: Compose Parent Position ID

Note – compose action will create foreach branch

image-11 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.9: List Item in Position Table.

image-12 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.10: Compose Personnel Number

Note – compose action will create foreach branch

image-13 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.11: List Items in Position Table

image-14 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.12: Compose Identity Email

image-15 PP103 – Automated PO Confirmation Notifications in D365FO

Step 4.13: Send an Email V2

image-16 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5: Configure Fales Condition

Manager Notification

Step 5.1: Compose PO Number

image-17 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.2: Get a PO Record

Include Legal entity ID under object ID followed by comma and outputs

image-19 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.3: Compose Orderer Personnel Number

image-18 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.4: Get a worker Record

image-20 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.5: List Item in Position V2 Table

image-21 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.6: Compose Worker Position ID

Note – compose action will create foreach branch

image-22 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.7: List Position in Job Position Dual write table

image-23 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.8: Compose Parent Position ID

Note – compose action will create foreach branch

image-24 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.9: List Item in Position Table

image-25 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.10: Compose Worker Personnel Number

Note – compose action will create foreach branch

image-26 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.11: List Item in Worker Table

image-27 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.12: Compose Identity Email

image-28 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.13: Send an email to Identity Email

image-30 PP103 – Automated PO Confirmation Notifications in D365FO

Director Notification

Step 5.14: List Item in Job Position Dual Write table

image-31 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.15: Compose Position ID

Note – compose action will create foreach branch

image-32 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.16: List Item in Position Table

image-33 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.17: Compose Worker Personnel Number

Note – compose action will create foreach branch

image-34 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.18: List Item in Worker Table

image-35 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.19: Compose Identity Email

Note – compose action will create foreach branch

image-36 PP103 – Automated PO Confirmation Notifications in D365FO

Step 5.20: Send an email to Identity Email

image-37 PP103 – Automated PO Confirmation Notifications in D365FO

Conclusion

Implementing this automated approval process ensures that POs are reviewed by the appropriate managerial level, maintaining control over expenditures while leveraging Teams for efficient communication.

Expand Your Knowledge: See More Power Platform Blogs

Share this content:

I am Yogeshkumar Patel, a Microsoft Certified Solution Architect and ERP Systems Manager with expertise in Dynamics 365 Finance & Supply Chain, Power Platform, AI, and Azure solutions. With over six years of experience, I have successfully led enterprise-level ERP implementations, AI-driven automation projects, and cloud migrations to optimise business operations. Holding a Master’s degree from the University of Bedfordshire, I specialise in integrating AI with business processes, streamlining supply chains, and enhancing decision-making with Power BI and automation workflows. Passionate about knowledge sharing and innovation, I created AI-Powered365 to provide practical insights and solutions for businesses and professionals navigating digital transformation. 📩 Let’s Connect: LinkedIn | Email 🚀

Post Comment

Table of Content