You are viewing limited content. For full access, please sign in.

Question

Question

notification when file downloaded

asked on September 30, 2015

Hello,

I have a scenario, User downloads a file from Weblink Portal, I want to send email notification to the owner (who's name is in one of the fields) when the external user downloads (or opens) the file.

Can anyone please guide how to achieve this?

 

Regards,

Sahil

0 0

Replies

replied on September 30, 2015 Show version history

It should be doable, but it will require some programming on your part.  If you look in web.config, you'll see that ElectronicFile.aspx has ElectronicFileHandler set up as its handler.  What you would do is write your own HttpHandler, and set that url to map to your handler.  Your handler would accept the request and look at the URL parameters for docid and such.  You could either send the mail right away, or preferably write the information to a database for asynchronous sending.  After you do that, you can Transfer() the request to another url that you have set up to map to ElectronicFileHandler.

1 0
replied on September 30, 2015

Thanks Brain,

I don't know should I feel happy about this information or scared....

Is it not possible that workflow can handle it somehow & when the document is downloaded sends email? 

I'm sorry but scripting is not my strength...

0 0
replied on September 30, 2015

I don't think Workflow gets notified of export events; if it does that's obviously an option.  Something else you could do is to parse the IIS logs looking for requests to ElectronicFile.aspx.

0 0
replied on September 30, 2015

Workflow has no knowledge of documents being viewed or downloaded.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.