Creating File Transfer Scripts

You can use WebDAVClient, FTPClient, or HTTPClient in your file transfer script to move files from your backend system into Salesforce B2C Commerce.

We recommend that the file names for transfer include the date, so that the pipeline can identify if the correct file for import is in the correct location and can remove files from the archive efficiently. This approach requires you to create a script that can generate the expected file name for comparison to the actual file name. For example, the pipeline expects the catalog-jul-08.xml file and instead finds jun-08.xml, it can generate an error.

The least complicated file transfer pipeline to write is that for a WebDAV connection with an HTTP GET or POST, because such a pipeline doesn't require you to create an SSL connection.