Share this

Grouping and Sorting in BizTalk Maps

Recently I received a requirement where grouping and shorting in BizTalk map was required to get the desired result. Here I have a sample message which has list of contacts and their items for an account. Multiple contact nodes are there for multiple items with same contact email address , first name and last name.. Input message: This message need to be transformed to a message with single node for a contact email address and all the items for a particular contact should be grouped within the contact. Output message: The suggested way to accomplish this would be using xslt style sheet. You can refer Muenchian method. I generally avoid using external XSL file or custom-XSLT because I am not very much comfortable with XSLT. So I tried to achieve this by using .net helper class. I am not sure how would be the performance in case of dealing with large message but it work well for normal size messages. Also this would be easily readable and maintainable in comparison with XSLT. For a new BizTalk developer to troubleshoot and/or change an existing map it will be more easy to do using .net helper and BizTalk Mapper rather than troubleshoot and/or change and entire custom-XSLT file without a visual representation.
Related Links:
http://social.technet.microsoft.com/wiki/contents/articles/22059.biztalk-server-grouping-and-sorting-operations-inside-biztalk-maps-using-the-muenchian-method.aspx

Loved this? Spread the word


Gautam

Follow me here

About the Author

My name is Gyanendra Kumar Gautam. I am Solution Consultant, who basically works to hook the stuff together using Microsoft technologies like Azure PaaS, Azure Serverless Services, Microsoft BizTalk Server, and Azure DevOps Services.

You may also like

REST support in BizTalk Server

What is REST? Representational State Transfer (ReST) is a software architecture style consisting of guidelines and best practices for creating scalable web services. ReST has gained widespread acceptance across the Web as a simpler alternative to SOAP and WSDL-based Web services. REST makes use of existing and widely adopted technologies, specifically HTTP, and does not

Read More

Security Features in BizTalk Server

BizTalk Server enables companies to automate business processes, through the use of adapters which are tailored to communicate with different software systems used in an enterprise. In a common scenario, BizTalk enables companies to integrate and manage automated business processes by exchanging business documents such as purchase orders and invoices between disparate applications, within or

Read More

Never miss a good story!

 Subscribe to my blog to keep up with the latest news!