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_pathattachment 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_pathparameter as for example below.Modify the
sendmailparameter 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.csvis the example filenamepwf.SomeDatareferences a string value ofSomeDatain an example workflow from where the function is called.Note
If the
SomeDatatext to add to the file is entered in the macro itself, it cannot contain commas.