MH509 – Transforming Data with Liquid Templates: Aligning MHAX Outbound Responses to External WMS Formats in Dynamics 365FO
Table of Contents
ToggleIntroduction
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


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

B. Create Integration account in Azure

Go to Resource

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

Both templates uploaded

C. Link integration account with logic app
Navigate to Logic app > Settings > Workflow settings > Select integration account

Integrate liquid template action in Logic app workflow
A. Add Liquid Operation action ‘Transform JSON to JSON’
Putaway-Pick branch

Content : Parse Json output
Map: Select ‘Putaway-pick’ template that we have uploaded above

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

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.

B. Verify Logic app run

Expand Your Knowledge: See More Material Handling Blogs
I am Yogeshkumar Patel, a Microsoft Certified Solution Architect and Enterprise Systems Manager with deep expertise across Dynamics 365 Finance & Supply Chain, Power Platform, Azure, and AI engineering. With over six years of experience, I have led enterprise-scale ERP implementations, AI-driven and agent-enabled automation initiatives, and secure cloud transformations that optimise business operations and decision-making. Holding a Master’s degree from the University of Bedfordshire, I specialise in integrating AI and agentic systems into core business processes streamlining supply chains, automating complex workflows, and enhancing insight-driven decisions through Power BI, orchestration frameworks, and governed AI architectures. Passionate about practical innovation and knowledge sharing, I created AIpowered365 to help businesses and professionals move beyond experimentation and adopt real-world, enterprise-ready AI and agent-driven solutions as part of their digital transformation journey. 📩 Let’s Connect: LinkedIn | Email 🚀



Post Comment