Get a list of files

Last published at: April 26th, 2021

Description:

Gets (Downloads) the list of files from a directory in XML format

Inputs

  • folderPath – The physical path of the folder from which the files are to be downloadedEx: - C:\Folder1
  • fileScope – File Scope
  • selectSubFolders – Selection of sub folders which are displayed in the main folderEx: - /folder1/folder2
  • variableToStore - Variable to store the list of files XML downloaded from the directory 

Returns

  • True – step executed successfully
  • False – step failed to execute 

Usage:

Example:

Let’s build and execute the getFilesDef example.          

  • Create a new definition called “getFilesDef
  • Select the definition and click the “design” button
  • Drag a getFiles step from the toolbox
  • Connect the dots between the start and getFiles step

  • Click on the “GetFiles” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic
  • Save the workflow definition, create a workflow instance and execute. Step will get list of files from directory to xml format and the result files path will store in ‘result’ variable or global.