ExportFile obsolete

#1

What should be used in place?

0 Likes

#2

Can you provide some detail about your use case? What are you trying to export and in what shape?

0 Likes

#3

I received a javascript script from Julien to export/import data.

This script use ExportFile and I was looking in the documentation.

The script in attachment

Jean-Michel DEPAEPE
Data Developer
Services Belux
jean-michel.depaepe@engie.commailto:%20jean-michel.depaepe@engie.com
P +32 2 370 30 16 - F +32 2 389 23 04
M +32 477 55 62 63

[cid:image001.jpg@01D36F69.4C598220]

Boulevard Simón Bolívarlaan 34 - 1000 Brussels - BELGIUM

0 Likes

#4

Use Case of ExportFile should be exporting files.

From reverse engineering of the script, I see that those files are published on an url like:
https://emr-stage2.c3iot.com/content/1/engie-emr/admin;jmdrelease2/ExportFile/gdf_-type-BillingAccount.BillingAccount.json

So we can easily download the file with tools like curl.

0 Likes

#5

The documentation of ExportFile is

OBSOLETE! Do not use!

but it does not indicate what to do

0 Likes

#6

if you need to export data to S3 then have a look to Export.startExport.

0 Likes

#7

How can I download data from S3?
How can transfer data from S3 cluster1 to S3 cluster2?

0 Likes

#8

I suppose via method fileEndpoints

0 Likes

#9

Similarly, there is the Import.startImport.

0 Likes