---
schema_version: "1"
id: 250312c0a7afae2e617278a88d285dc43905240cffccd3a3f50774d030898a54
title: "Sub-Pipeline : LoadFilesFromHTTP"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/b2c-commerce/guides/inventory/b2c-sub-pipeline-load-files-from-http.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/b2c-sub-pipeline-load-files-from-http.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ef856af19d269a141d8319e4cf17b3a0aff8e4ee88e40dba5759cee9f4521f8b
products:
  - Composable Storefront
  - Salesforce APIs
---
# Sub-Pipeline : LoadFilesFromHTTP

Review the LoadFilesFromHTTP sub-pipeline when scheduling inventory imports.

![LoadFilesFromHTTP sub-pipeline diagram showing steps to retrieve inventory files from an HTTP server](https://developer.salesforce.com/media/b2c-commerce/b2c_inventory_inventoryloadfilesfromhttp.gif)

Pipelet : Script (bc_api). Calls `[GetFilesFromHttpServer.ds](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/b2c-get-files-from-http-server-ds.md)`

| Variable                | Type                   | Comment                                              |
| ----------------------- | ---------------------- | ---------------------------------------------------- |
| `@input ConnectionUrl`  | `String`               | of the server URL including protocol                 |
| `@input Login`          | `String`               | The login for authentication                         |
| `@input Password`       | `String`               | The password for authentication                      |
| `@input SortDirection`  | `String`               | 'ASCENDING' or 'DESCENDING'                          |
| `@input NamePattern`    | `String`               | The pattern for the filenames (use ".\*" to get all) |
| `@input ServerPath`     | `String`               | the directory path at the server                     |
| `@input importLogger`   | `Object import logger` | input for import logger                              |
| `@Output FileList`      | `dw.util Collection`   | The files matching the pattern                       |
| `@Output StatusCode`    | `Number`               | The servers status code                              |
| `@Output StatusMessage` | `String`               | The servers status message                           |
| `@Output importLogger`  | `Object import logger` | debug output for import logger                       |
| `@Output importError`   | `Object import error`  | error output for import logger                       |

Continue after calling node.
