The built-in destination keeps every file in Spooldoc, ready to download from the run in the job log.
An IFS destination writes each file to a folder on the job's IBM i, where programs can pick it up. Each file is tagged with the right CCSID and is never half written. When a file with the same name exists, the destination replaces it, adds a number or fails the run, as you choose.
An email destination sends one email per document through your SMTP server or Microsoft 365. To, Subject and the message take fields such as {d.pg.email}, so each invoice goes to the customer on it, with its PDF attached. When the address is not printed, a lookup reads it from Db2 for i. The message can be the document itself, from an HTML template. The job builder shows the email of each page group before anything is sent, and a test address sends every email to you first.
A webhook destination posts one call per document to your URL: JSON with the fields the definition read and the files in the formats you pick, signed the Standard Webhooks way so the receiver can check it came from Spooldoc. The job builder shows the call of each page group with the real values, and Send test posts it and shows the answer. A test URL takes every call while you try it.
An SFTP destination uploads each file to a folder on a server, such as a bank or an EDI partner. Spooldoc makes the key and shows the public key line to add to the server. Check connection prints each step with its real values and stops at a new host key until you compare its fingerprint and trust it. In the job builder, the folder on the server is listed live with the page group's files placed in it, each tagged with what a run will do, and Upload test puts them in a test folder. Each file is written under a temporary name and renamed when it is whole.
Routes send each document by its fields: email the invoices of customers who have an address, and write the rest to an IFS folder. Each document takes the first route whose conditions it matches, and a route can send to several destinations. The job builder shows which route each page group takes, and why, before anything is sent. A document that no route takes fails the run, and the job log names it.
The spooled file is held, moved or deleted only after every document was delivered. When an email, a call, an upload or a file written to the IFS fails, the job log lists each one with its status, and Retry sends only what was not sent yet.
Read the Destinations guide