The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Sub-Pipeline : GetUnzipFile

Review the GetUnzipFile sub-pipeline when scheduling inventory imports.

  1. Script (bc_api). Call Get Unzip.ds . This script unzips a file.
@input ZIPFileNameStringThe file name of the .zip file
@input processing directory where the file is located
@input importLoggerObjectimport logger
@output unzip directory where the extracted import file is located
@output .zip file
@output importLoggerObjectimport logger
@output importErrorObjectimport error
  1. Script (bc_api). Calls [GetFilesFromDirectory.ds]( . This script retrieves a file list from an FTP/HTTP(S) server.

    @input directory to browse
    @input SortDirectionString'ASCENDING' or 'DESCENDING'
    @input NamePatternStringThe pattern for the filenames (use ".*" to get all)
    @input importLoggerObject import loggerinput for import logger
    @output FileListdw.util CollectionThe files matching the pattern
    @output importLoggerObject import loggerdebug output for import logger
    @output importErrorObject import errorerror output for import logger
  2. Loop : UpzipFiles[]

  3. Pipelet : Script (bc_api). Calls [RenameFile.ds]( .

  4. Pipelet : Eval (bc_api). Delete the original Import .zip file with ZipFile.remove() .

  5. Pipelet: Assign (bc_api). Set the following value.

    ImportFile =

  6. Loop to UnzipFiles[] until all files are processed.

  7. Pipelet : Eval (bc_api). Delete the original Import .zip file direcctory with UnzipDirectory.remove() .

  8. Continue after calling node.