How to improve our BTXML command (working fine with CSV inside)
Hello,
We are currently sending this command through the REST API. The goal is to print a label with variables inside.
This is working fine, but we would like to improve the readability and get rid of CSV inside and replace it with JSON for example
<?xml version="1.0" encoding="utf-8"?>
<XMLScript Version="2.0">
<Command Name="Job1">
<Print>
<Format>D:\Bartender-Share\Format\CST00002_CUSTOMER1_BE2.btw</Format>
<RecordSet Name="database" Type="btTextFile">
<Delimitation>btDelimQuoteAndComma</Delimitation>
<UseFieldNamesFromFirstRecord>true</UseFieldNamesFromFirstRecord>
<TextData>
<![CDATA["ShipToId","SalesOrderNbr","ProdCode","ProdDesc1","ProdDesc2","ProdEAN","ProdLength","ProdWidth","SheetIndexTag","CustOrderReference","CustProdCode","CustProdDescription","CustText1","CustText2","CustText3","CustText4","CustText5","ShipToCity"
"6691","DEASSXS","BLAHBLAHPRODUCT","TEST CVE","FOOD LABEL","123456","610","430","200","4505110866","88205170","","","","","","",""]]>
</TextData>
</RecordSet>
</Print>
</Command>
</XMLScript>
The main issue is in fact the Carriage Return between the CSV data included in the POST request to the API call
Is there a way or best practice to improve that?
Thanks a lot
0
Iniciar sesión para dejar un comentario.
Comentarios
0 comentarios