Programattically export products like in litium backoffice

Is there a way to export products programatically like we do in Litium backoffice
Litium version: 7.4.2

Import/Export api is not exposed as source code, what do you want to do exactly?

You can inject the IExportService interface, which has a method StartExport. This method takes an settings object of the type PredefinedExportSettings that has properties for fields, languages and filters. You can look at the POST request when you’re making an export to see an example. The method returns a GUID to identify the export file.

There’s an event ExcelExportEngine.ExportNotification that notifies you when the export is ready. With the id you can then get the complete path to the file with the service method GetExportPath and initiate a download.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.