Grouping and debatching Inbound Messages from WCF SQL Adapter - BizTalk 2010

Introduction


It is a very common scenario where  a Purchase Order is received and data within it is inserted in multiple tables , viz. Header, Item, Address tables etc.

How to insert in SQL using WCF-SQL adapter can be seen at :
https://tech-findings.com/2013/07/insert-records-in-sql-server-using-wcf.html

https://tech-findings.com/2013/07/insert-records-in-sql-server-using-wcf_5.html

 And when it comes to send Ack , Ship notification or Invoice we need to poll data from different tables with the help of unique Id (most of time its the OrderId along with some other field) which minimizes the risk of duplicate entries.

How to poll from SQL using WCF-SQL adapter can be seen at:
https://tech-findings.com/2013/08/polling-data-from-sql-using-wcf-sql.html


Scenario for this post:  

We polled data for order and as it has many items ,thus we get multiple  set of  repeating nodes with each node having Header data(which is common for all items) and Item data. But we want to group them based on OrderId i.e.,multiple set to be merge into single set with repeating items in it for a particular OrderId.

Lets see how to do it:

https://social.technet.microsoft.com/wiki/contents/articles/18845.grouping-and-debatchingsplitting-inbound-messages-typedpolled-from-wcf-sql-adapter-biztalk-2010.aspx

Will keep on posting as an when I find something to share!!!!!!!!!!!!

If you have questions or suggestions, feel free to do in comments section below !!!


Do share if you find this helpful .......
 
                          Knowledge Sharing is Caring !!!!!!



Related Post 





Post a Comment

If you have any suggestions or questions or want to share something then please drop a comment

Previous Post Next Post