flavia_sarah
5 years agoNew Contributor II
Create Key Value Pair instead of List/Array
Expression for Conversation.Text = $[‘$ConversationPost.Text’].toString().split(“|”).map((elem, index) => [elem])
Mapper Output:
The desired output is:
“ConversationPost” : {
“Text”: “comment #2 US142”,
“Text”: “comment #1 US142”,
“Artifact” : “/hierarchicalrequirement/…”
}
Not sure where did I go wrong.
Is there any possible way to achieve this output?
Please find the attached simple pipeline:
SL_Community_1_2020_11_23.slp (5.0 KB)
Hope that the output from this pipeline, that I have attached is what you are trying to achieve.
Regards,
Spiro Taleski