get content of attached file of workflow()

This function returns the Base64 encoded content (encoding "8859_1") of workflow file b of workflow job a.

If either the workflow job or the file was not found, the return value of the function is an empty string ("") with set Empty Flag.

Parameters


Parameter

Description

a

Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job.

b

Name of the file.

c

(optional) Name of a map in which the file attributes will be stored. Note: See also function dump map (a,b,c,d), for example.

description - The description of the file.

file-size - The size of the file in bytes.

upload-date - The time at which the file was uploaded.

user - The user who uploaded the file.

<user-defined file attribute 1> - User-defined file attribute added with function attach file to workflow().

... - More user-defined file attributes.

Example


Let's assume that the workflow job named MyWorkflow 1628490814713 has the file myfile_1.txt with content 111 attached . Note: The value MTEx is the Base-64 encoded value 111 (encoding 8859_1).

Parameter a

Parameter b

Parameter c

Result

MyWorkflow 1628490814713

myfile_1.txt


MTEx

Decoding


Function decode Base64() can decode Base64 values.

Saving

Function write into file() allows text and binary files to be saved directly from a Base64 value.