# Programattically export products like in litium backoffice

**URL:** <https://forum.litium.com/t/programattically-export-products-like-in-litium-backoffice/1563>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [July 13, 2020, 6:32am UTC](https://forum.litium.com/t/programattically-export-products-like-in-litium-backoffice/1563 "2020-07-13T06:32:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinesh](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@jinesh](https://forum.litium.com/u/jinesh)\
**Post date:** [July 13, 2020, 6:32am UTC](https://forum.litium.com/t/programattically-export-products-like-in-litium-backoffice/1563/1 "2020-07-13T06:32:40Z")

</div>

Is there a way to export products programatically like we do in Litium backoffice  
Litium version: _7.4.2_

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [July 13, 2020, 6:57am UTC](https://forum.litium.com/t/programattically-export-products-like-in-litium-backoffice/1563/2 "2020-07-13T06:57:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [July 13, 2020, 7:23am UTC](https://forum.litium.com/t/programattically-export-products-like-in-litium-backoffice/1563/3 "2020-07-13T07:23:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [August 10, 2020, 7:32am UTC](https://forum.litium.com/t/programattically-export-products-like-in-litium-backoffice/1563/4 "2020-08-10T07:32:17Z")

</div>

Closed on August 10, 2020, 7:32am UTC

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