Import encrypted requisition files from SFTP to Oracle
Recipe ToolsWorkatoFile TransferDeveloper ToolDatabaseUtilities
What it does
When a function call arrives, this automation downloads an encrypted file from the SFTP server and decrypts it using a PGP key. The process validates encoding, logs results to a job report, and prepares the requisition data for Oracle import.
Who it's for
Finance and Procurement teams who need to ingest encrypted requisition files into Oracle without manual decryption steps.
How teams use this
Automate encrypted requisition ingestion
Download and decrypt PGP-encrypted requisition files from SFTP, then prepare them for Oracle import without manual intervention. The team receives a job report showing what was processed.
Validate file format before import
Check whether each file is encrypted by its .pgp extension, decrypt only when needed, and log the outcome. This prevents import errors from unencrypted or corrupted files.
Add custom encoding for regional data
Extend the automation to filter files by region code and set region-specific character encoding rules before Oracle import. Only requisitions matching the target region are processed.
Route failed imports to a review queue
When decryption or validation fails, add the file details to a Smart List for manual review instead of stopping the job. This keeps the batch moving while flagging problem records.
How it works
- Receive the function call. A real-time function call initiates this automation with the requisition file details needed to proceed.
- Download file from SFTP server. Retrieve the requisition file from the SFTP server and check if the file name ends with .pgp to determine whether decryption is required for the next step.
- Decrypt the file content. When the file is encrypted, use the Workday PGP key to decrypt it so the requisition data becomes readable and can be processed for Oracle import.
- Decode and prepare the data. Decode the file content from Base64 and UTF-16 BE encoding, remove quoting, and create variables for processed count and batch size before Oracle import.
- Log results to job report. Record the file contents and processing status to the job report so the Finance team can track which requisitions were imported and any errors that occurred.