Files

This content applies to legacy design tools (such as K2 Studio, K2 for Visual Studio, or the Silverlight-based K2 workflow design tool). If you have upgraded from K2 blackpearl 4.7 to K2 Five, these tools may still be available in your environment. These legacy tools may not be available in new installations of K2 Five. These legacy tools may also not be available, supported, or behave as described, in future updates or versions of K2. Please see the legacy component support policy for more information about support for these components.

The Files inline functions allow you to get information about files, including the content, from various sources.

Select the applicable function and add it to a wizard or K2 field part by clicking the Add button or by dragging it to the right place. After adding the function, the wizard for the function opens.

The return type for all Files inline functions is an XML string. The functions return an XML structure containing the file name and the file contents, similar to the following:

<files>
	<file encoding="Base64">
		<name>Leave Policy.docx</name>
		<content>JVBERi0xLjSNCiWys7S1...</content>
	</file>
</files>