# "Best" way to export data on a schedule

**URL:** <https://www.epiusers.help/t/best-way-to-export-data-on-a-schedule/36248>\
**Category:** Epicor ERP 10\
**Created:** [November 11, 2016, 4:38pm UTC](https://www.epiusers.help/t/best-way-to-export-data-on-a-schedule/36248 "2016-11-11T16:38:01Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [November 14, 2016, 2:06pm UTC](https://www.epiusers.help/t/best-way-to-export-data-on-a-schedule/36248/11 "2016-11-14T14:06:06Z")

</div>

Thanks for all that. I’ll build and test it using a button in a custom form.

Now about executing it on a schedule.  
In V8 I put the code in a DynamicQuery.ExportByID BPM. Then scheduled a BAQ Export Process.

 ![](https://epiusers.help/uploads/default/original/1X/648412b4e2d224c1baccc2e145c63036470c8179.png)  
Conditions:

```
the pcFilenameOverride argument contains the "APExport" value
and the pcQueryID argument is equal to the "MC-Trigger" value

```

But in E10, there is no DynamicQuery.ExportByID

 ![](https://epiusers.help/uploads/default/original/1X/31ce8257edac444165481d804d3b6db8658a579f.png)

What should I use to schedule it.

FWIW - the BAQ (“MC-Trigger”) that the BAQ Export Process ran, does nothing. just used to trigger the BPM.

---

_[View the full topic](https://www.epiusers.help/t/best-way-to-export-data-on-a-schedule/36248)._
