For Automation Engine versions 23.03 or higher, please refer to the next item.
In the Automation Engine versions prior to 23.03, one has to encode a file URL as a URI component to be able to use it in a viewer URL (see also the examples under 1.). This can be handled using some dedicated SmartNames but this also results in potentially large URL's - which might cause issues in the 'Wait for Action' task where links are limited to 512 characters in Automation Engine versions prior to 23.03.
To do the encoding of the file paths, one has to set up two SmartNames to get to the correct encoding:
First: Use the standard 'URL encoding' (see SmartName 'File URL - URL encoded' in the attached example):
Second: Use a custom encoding to additionally escape the % : and / characters:
The 'Wait for Action' task uses the above SmartNames to add an external link with this syntax :
Example ticket: Compare Product with Uploaded file (21.11).zip (created with Automation Engine 21.11)