There will be a command in the design tool menu for the retrieve operation. When the user selects the Retrieve command, retrieve API gets invoked. In non-file mode the user may choose to retrieve one or more documents from the Retrieve dialog box that gets displayed. File mode Retrieve retrieves files published to the file system. When file mode is turned on, file mode flag is set to TRUE. This allows users to pick Data, Metadata, and tombstone files from the file system that can be retrieved.