2

Email file from Task output directly to the user

I am wondering if a feature upgrade (or existing feature I may be unaware of?) could be made to allow for files to be emailed to a user upon completion of the task.  

e.g. export DWG or export PDF, I would like to be able to email the file directly to the user that requested the file. In a perfect world based on file size there would be options for emailing directly or emailing a link to download the file.

Alternately, a way that when a task is initiated by the user, for the username to be available to post task actions?

Thanks!

1 reply

Brooke,

It's an interesting idea.

You could get close with a custom Post Task Action (called at the end of the task) - either a script or C# code. In both cases you get the list of files created by the task, fully pathed so that you could attach them to an email and send it.

The trickier part is who to send it to. In the script scenario, I believe that you get the Task ID. In the C# scenario, you get the full task object - but it doesn't have the email of the user in question (it just has their internal User ID).

You'd have to use the Clarity API to look up the user that launched the task, so that you could get the email to send it to.

We'll also add it to the list of ideas we'll consider for the future.

Best Regards,

Matt