2022.2

Table Of Contents
l
?in=INV999999 : A GET Variable, specifying that the variable named invoicenum (invoice num-
ber) would have a value of INV999999 , or any other "valid" invoice number.
Process illustration
Task breakdown
l
The HTTP Server Input task receives a request through the /getinvoice HTTP Action. Because
this task either returns an HTML page with an error message or a PDF, the MIME type is Auto-
Detect.
l
It checks whether the invoice request exists by checking if the size of the file is less than 1kb
using "File Size Condition" on page425. The condition returns "true" if the file is not found:
c:\PlanetPress\archives\pdf\invoices\xmlget('/request[1]/values[1]/invoicenum
[1]',Value,KeepCase,NoTrim).pdf
Here, the xmlget() function grabs the invoicenum variable from the GET request, which would be
INV999999.pdf in the specified folder.
l
If the file is not found, then a simple, basic HTML page is created indicating the invoice was not
found. For this, a "Create File" on page297 task will suffice, followed by the "Delete" on page546
output task. As mentioned in "HTTP Server workflow" on page221, deleting the data file only
means you are not doing anything with it locally - it is still returned to the client.
Page 226