Requirement is to extract the repeated XML node with Static parent node.
Step 1 -
Here, I am passing input in the Content modifier itself.
<Root>
<Employee>
<Name>Akshay</Name>
<ID>1</ID>
</Employee>
<Employee>
<Name>Sudeep</Name>
<ID>2</ID>
</Employee>
<Employee>
<Name>Advik</Name>
<ID>3</ID>
</Employee>
<Employee>
<Name>Hirva</Name>
<ID>4</ID>
</Employee>
</Root>
-----------------------------------------------------------------------------------------------------------------------------
Step 2 :
Declare Property variables to hold the output.
Name_Concat
string-join(/Root/Employee/Name, ",")
ID_Concat
string-join(/Root/Employee/ID, ",")
Below is the config. of the message body tab of the content modifier:
-----------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment