On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

URGENT: How to add a file during Workflow transit?

at some stage of the workflow, i would like to add a file automatically. i saw something on TeamSite::WFTask using AddFile($path, $comment). BUT i hav no idea how to where or how should i use it???...in external task, cgi-task, just where to put the code? what is $path and $comment (their syntax)???.... appreciate some help here.
thanks!