File Functions¶
fn.write_temporary_local_file: Given a filename and text data, write the data to the filename onto the file system temporary directory.
This file is then used as an e-mail
file_path
attachment parameter for the fn.email_html function. See: Email Functions.To use this function, contact VOSS support for Provisioning Workflow modification.
See: EmailThe requirement is to:
Add the
file_path
parameter as for example below.Modify the
sendmail
parameter as for example below.
Syntax:
{ "set_var_name": "file_path", "set_var_value": "{{ fn.write_temporary_local_file mydata.csv,pwf.SomeData }}" }, { "set_var_name": "sendmail", "set_var_value": "{{ fn.email_html pwf.to,pwf.from,pwf.email_template, pwf.file_path }}" }
where:
the value for example sets
pwf.file_path
, to be used as a parameter of:{{ fn.email_html pwf.to,pwf.from,pwf.template,pwf.file_path }}
mydata.csv
is the example filenamepwf.SomeData
references a string value ofSomeData
in an example workflow from where the function is called.Note
If the
SomeData
text to add to the file is entered in the macro itself, it cannot contain commas.