Export array into csv file using Mirth Connect #4596
Replies: 3 comments 5 replies
-
I would go over to the mirth forums in this case and take a look at the many posts about CSVs. Also, take a look at the forum etiquette https://forums.mirthproject.io/articles/177082-forum-etiquette, which applies here as well. In particular, at least post what you tried. |
Beta Was this translation helpful? Give feedback.
-
When you use the delimited data type, your csv is represented as XML in the transformer. You can do CSV to different CSV. In your case, probably the easiest thing to do would be to delete the column you don't need from the row in the transformer, and let mirth handle the serialization. There is no way to automatically convert an array of strings to a csv (which itself is just a string.) If you need to do it that way, you'll have to build the csv string yourself from your array. |
Beta Was this translation helpful? Give feedback.
-
I create another destination in which the File write is used and get the data using the channelMap |
Beta Was this translation helpful? Give feedback.
-
I am importing a csv file by the following line:
var CSV = connectorMessage.getEncodedData();
I am using JavascriptWriter for this problem.
My objective is to eliminate the empty column from this and export it. So I made an array which has no empty column.
["1","ali","12/10/2000","2","usama","12/4/2006","3","qasim","12/10/2003","4","taha","12/10/1995","5","","12/10/1992"]
I want to export this array into csv when file move to particular folder.
Kindly help me on this query.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions