Mapping single entity to multiple entities for domain to XML

0
I have a single entity that stores user input. I have another tree of associated entities that I am using to do a domain to XML mapping (before making a web service request). I would like to create a microflow to map the attributes from the single entity to the appropriate attributes in the tree of associated entities. What is the proper method for this functionality?
asked
2 answers
0

Brett,

A microflow would do the trick.  In the microflow, you'll create the logic to split up the information into the appropriate entities for the XML export.

Hope that helps,

Mike

Per your request, here is an example of posting contact info (name, email address, phone) from a Mendix contact to Hubspot, a marketing automation too:

Here is the data model:

Here is the microflow that creates the Mendix objects and posts to Hubspot:

And here is the nested microflow (highlighted in yellow above):

Hope that helps.

 

answered
0

Brett, for XML mappings in 5.13.1, you often will use a simple microflow to return the same object you already have, just one level down the XML tree. So, you could set up your mapping like this:

with settings like this:

and a microflow like this:

 

answered