The advanced output workflow component, Output temporary web storage is described below.
- The input for the component is a payload containing a PDF.
- The component stores the PDF file temporary in the resources with a random file name.
- The resource file is then available for direct web access without login.
- The component is mainly meant for usage in ERP systems like SAP or Dynamics365 for previewing PDF documents.
The workflow component has these parameters:

Output type
The type of output file, that is to be generated. You can select the type from a drop down list. Currently the output formats XML and JSON are allowed.
When selecting JSON, the following structure is returned into the payload:
{"filename":"zvk66zkk88Cw8VP9N5cznbAv7t7AaBmC.pdf","size":7921}
When selecting XML, the following structure is returned:
<tempStorage>
<filename>dFppUHz9G25MEWCVEs9CESyR4SMe2Ert.pdf</filename>
<size>7924</size>
</tempStorage>
Store in minutes (Optional)
This defines how long (in minutes) InterFormNG2 should keep this output file. This defaults to 3 hours, if not filled out.
The component creates a temporary output file in the directory like this:
<InterFormNG2_Home>\resources\<tenant>\moduleFile\outputstoragetemp
(If the file system is used for storing the resources)
The temporary PDF file can now be reached via a link like this:
SERVERURL:SERVERPORT/rest/tempStorage/FILENAME_FROM_XML
Example:
http://localhost:8086/rest/tempStorage/dFppUHz9G25MEWCVEs9CESyR4SMe2Ert.pdf

Note, You need to of course make sure, that this link is accessible from the application from where you want to preview.
Related Articles
Time-limited persistent storage in workflows
Introduction Some customers are using the file system or the library to store input XML documents, in case they need to be re-processed later due to an error. Other customers use the file system or the library to temporarily store inputs that need to ...
Set Printing properties component
The set printing properties workflow component is relevant, if you are going to print out on a PCL compatible printer. So if want to use the features below, then you need to ensure, that this is set prior to the merge into PCL. You can also consider ...
Component element
The component element is selected via this icon: Components allow you to create and reuse a set of elements across multiple templates, ensuring consistency and efficiency in your business documents. For example, you can define a standard header or ...
Print output
You can print to on most printers in InterFormNG2. The printing can be done with these workflow components, if the printer is registered in InterFormNG2: With the Print workflow component. This is the normal print component, that does a merge with an ...
Email output
If you want to email from InterFormNG2, then you can use this check list: You need to define an email server in the tenant settings. You need to define a mail template (that defines the contents of the email), which can be defined as an html template ...