You can add custom commands for AS2, File System, FTP, SFTP, S3, AzureBlob, Email, OFTP, RNIF, and Partner Mailbox Endpoints to be executed when the Data Flow runs. No commands are available for AS2 and OFTP Endpoints when they are the source because these are push-only protocols (that is, inbound data for AS2 and OFTP is pushed by your trading partner).
Use the links below to navigate directly to information about the commands and their associated Endpoints.
- AS2 Endpoint commands
- File System Endpoint commands
- FTP Endpoint commands
- SFTP Endpoint commands
- S3 Endpoint commands
- AzureBlob Endpoint commands
- Email Endpoint commands
- OFTP Endpoint commands
- RNIF Endpoint Commands
- Partner Mailbox Endpoint Commands
For examples of how you might use these commands, see Command Examples.
Command Examples
SET with PostGetCommand example
The following SFTP-specific example shows how to use the SET command to set the PostGetCommand property, which specifies a command to be executed only after a successful GET. In this case, the PostGetCommand property specifies a QUOTE command, which in this case sends a raw RENAME command to FTP to move the file to the HISTORY directory.
SET PostGetCommand=QUOTE RENAME ${sourcefile} HISTORY\${sourcefilebase}${sourcefileext} CD order GET *.ord
So when these commands run, we CD to the order directory, GET files with the .ord extension, and if the GET is successful, we move each file to the HISTORY directory and the retrieved file content is passed to the destination of the Data Flow.
PUT command example
The following example of the PUT command sends files to multiple directories on one Endpoint.
PUT *855* POAckSell/ PUT *997* FA/
When these commands run, files with names that contain 885 are put in the POAckSell directory and files with names that contain 997 are put in the FA directory.
Comments
0 comments
Please sign in to leave a comment.