Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

How to copy files to remote systems using File Transfer Protocol (FTP)

Updated on September 1, 2021

Summary

Your application can automatically copy files from the Process Commander server system to a remote file system using File Transfer Protocol (FTP).

For example, if your application writes data from a work object to a file using the File Connector feature, the application can then upload this file to a remote FTP server.

 

Suggested Approach

To upload a file to an FTP server:

  1. Create a new FTP server data instance. Select New > Integration-Resources > FTP Server.
    New FTP location

    Note: The default TCP/IP port number fpr FTP is 21, but this may vary.
  2. In a new or existing activity, add a new step that invokes the Connect-FTP method.
    New Activity Step

    Complete the step parameters. Using the SmartPrompt, select the FTPServer instance you created earlier.
    Parameters
    • Complete the following parameters:
      • FTPServer — Select the FTP Server instance you created in Step 1.
      • RemotePath — Select the path of the remote directory into which the file will be copied.
      • LocalFile — Enter the location of the file to be copied to the remote server. Enter either an absolute path or a property that contains the absolute path.
        Note: All "\" characters must be escaped by prefixing another "\" character. Alternatively, you can use a single "/" character.
        Your directory structure may differ from the one presented above. Check with your system administrator.
      • TransferMode — Select the method in which data will be sent over the network, either ASCII or Binary.
      Note: The following methods can also be used to define the

RemotePath

    • and

LocalFile

  1. If you are writing a file as part of flow processing, add a utility shape to your flow that references the activity rule you edited or created in step 2.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us