Hi DW,
Is there a way to download or export an order in DW10 with orderlines?
I would like to be able to download it as XML, csv or something like that.
Kind regards
Martin
Hi DW,
Is there a way to download or export an order in DW10 with orderlines?
I would like to be able to download it as XML, csv or something like that.
Kind regards
Martin
Hi Martin,
In DW9, there is an option in the LiveIntegration settings "Save copy of OrderXML request".
It will save the XML request in System/Logs/LiveIntegration/Orders.
But it will only have the request from DW to the ERP. If the ERP makes any calculations, this export will not contain them.
The regular OrderExport from DataIntegration will only export separate definitions for Orders and Orderlines without combining them into a single file.
I am not aware of any new feature in DW10 for this purpose, but it may be interesting to have it.
Adrian
Hey Martin,
I made a demo once, with some very ugly code, but I think the principle might be something you can use if coded decently.
I'm basically using a hidden page with a CustomerCenterApp on it to provide me with a "service" that will take care of creating the ViewModels for an order in the query string.
In the orderoverview I add a link to that hidden page with the orderID as a querystring, and the detail template will then generate and offer the download. In attached demo example it is just a csv with product and quantity. (again the template code is very bad, you should probably create a stream, instead of doing a redirect for example). The template uses https://www.nuget.org/packages/CsvExport, at the time I created the demo the CSV export dll needed to be in the bin folder (as templates could not use dll's form the appstore directly, not sure if that is solved)
You must be logged in to post in the forum