Scripts and Pipelets for Import and Export

You can use Salesforce B2C Commerce API components for importing and exporting.

Class/Group Description
dw.io.file Represents file resources that are accessible from scripting. File objects are identified by a path in the file namespace. The file namespace is organized as follows: (Virtual Path)(Relative File Path). You can use this class to create file or directory objects and zip or unzip files.
dw.net.HTTPClient Supports the HTTP methods GET, POST, HEAD, PUT, and DELETE. If a secure connection via HTTPS is established, the used server certificate must be signed by one of the B2C Commerce supported CAs and must not be self-signed.
dw.net.FTPClient Supports the FTP commands CD, GET, PUT, DEL, MKDIR, RENAME, and LIST. The FTP connection is established using passive transfer mode (PASV). The transfer of files can be text or binary.
dw.net.FTPFileInfo The class is used to store information about a remote file. You can use this class to detect if a new export file is in place on a remote machine.
dw.net.WebDAVClient This class supports the WebDAV methods GET, PUT, MKCOL, MOVE, COPY, PROPFIND, OPTIONS, and DELETE. The client can be used as shown in the following example. The WebDAV client supports the basic authentication scheme and the digest authentication scheme The methods of this class don't generally throw exceptions if the underlying WebDAV operation doesn't succeed. The result of a WebDAV operation can be checked using the methods succeeded(), getStatusCode(), and getStatusText(). This WebDAV client can't be used to access the B2C Commerce server via WebDAV protocol.
dw.net.WebDAVFile Info The class is used to get information about a remote file. You can use this class to detect if a new export file is in place on a remote machine.