Trends

MH509 – Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Introduction

In this article, we’ll explore how Liquid templates can be used within Azure Logic Apps to seamlessly transform outbound responses from Dynamics 365FO’s MHAX module into the required format for an external Warehouse Management System (WMS).

Liquid Templates are a powerful tool for data transformation, allowing you to reshape and format JSON or XML data to match the specific requirements of different systems. In scenarios where Dynamics 365FO needs to communicate with external WMS systems, the data format can often be a challenge, as each system may have its own structure and data requirements.

By using Liquid templates in your Logic App, you can take the outbound response generated by MHAX and transpose it into the inbound format that your external WMS system expects. This process ensures that data flows smoothly between systems without the need for complex manual transformations or multiple intermediate steps.

User case examples

Note – Picklist-Put and Putaway-Put does not require transform as they are not required for external wms

image-47 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO
image-48 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Liquid Template Configuration

A. Save above PickList-Pick and Putaway-Pick code as .liquid file locally.

image-49 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

B. Create Integration account in Azure

image-50 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Go to Resource

image-51 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Navigate to Settings > Maps > Click ‘+Add’ > Upload both liquid templates

image-52 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Both templates uploaded

image-53 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

C. Link integration account with logic app

Navigate to Logic app > Settings > Workflow settings > Select integration account

image-54 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Integrate liquid template action in Logic app workflow

A. Add Liquid Operation action ‘Transform JSON to JSON’

Putaway-Pick branch

image-55 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Content : Parse Json output

Map: Select ‘Putaway-pick’ template that we have uploaded above

image-56 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

PickList-Pick branch

Likewise Putaway-pick, configure PickList-Pick message with ‘PickList-Pick’ teimplate selected.

image-57 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Save logic app.


Run and Test

A. you can create a new transaction and let batch job send notification to logic app. I will Reset status of outbound message and use existing transaction to trigger logic app.

image-58 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

B. Verify Logic app run

image-59 MH509 - Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO

Expand Your Knowledge: See More Material Handling 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