[quote:7585e1ded9=\”DnzP \”]Hi I have two source schema : schema 1 and schema 2. In my map I use Schema 2 as my source schema. I have some promoted property in Schema 1 and need to access it in my map. Could anyone suggest how I could go about doing that.[/quote:7585e1ded9]
The custom function Stephen referenced earlier one (written by my friend Carlos) will probably do the trick for you, but mind you, it is a little bit of a hack 🙂
If you want to be more on the safe side, here’s what I usually do:
I put an expression shape right after the transform shape inside the *same* Construct message shape in the orchestration. In that expression shape, I simply use code to manipulate the rest of the message. For example, I might set a distinguished field in the recently created message to the value of a context property of the original message. Keep in mind you’ll probably need to ensure that the map initializes all nodes of the target document with no incoming links to a default value, so that the message is generated correctly.