AddCasePrint

This function adds attachment created from case print.

Syntax

AddCasePrint("fileName");
AddCasePrint("fileName","fieldName");
AddCasePrint("fileName","fieldName","toPDF");

Function arguments

  • templateName – (String) Name of the template file
  • fileName – (String) Name of the resulting file
  • fieldName – (String) [Optional] [optional] Name of the file field to which attachment will be assigned

Return value

This function returns Boolean.
Returns true if attachment was created, otherwise return false.

Examples

Example 1:
This will add file named print.html with case print to document list named

AddCasePrint("print.html");

Example 2:
This will add file named print.html with case print to field named print

AddCasePrint("print.html","print");

Example 3:
This will add file named print.pdf with case print converted to pdf to field named print

AddCasePrint("print.pdf","print", true);
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.