FAQ: Can I run Data Loader in My APIs?

Q. I have processes running in Data Loader that I would like to automate from a My API custom endpoint. I've tried setting up the code as if it were a flow, and that doesn’t seem to work. Is there a way to run Data Loader in My APIs?

A. There is no Data Loader object available in the integrator.io JavaScript runtime, by design. The only way to initiate Data Loader is through the user interface.

Nonetheless, you might be able to achieve what you’re looking for in My APIs by running a virtual export and/or the import that resides in your Data Loader configuration.

It’s important to remember that, when you’re calling import.run(), you must know the import ID. In the case of Data Loader, the format is slightly different than within a flow:

https://integrator.io/integrations/
none/dataLoader/5fd••••••••••••••••••3cd/
edit/imports/5fd••••••••••••••••••3fc