get content of attached file of workflow(a,b,[c])
Group |
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.
Parameter Description
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.
|
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 |
Saving
Function write into file (filename a; [encoding b, default is 8859_1]; content c; [d:true if content is base64 coded, e:encoding, f:append, g:created filename]) allows text and binary files to be saved directly from a Base64 value.