Hi,
I am doing Vault Professional Customization with C# as Development language.
Coming to problem : in Vault, File-Send-SendLink will send the link of the file to users via mail client.
Can we achive this on lifecycle state change event??
I am trying to figure out a way to find this, but did not succeed. Is it possible to do so and with which event. Preferably lifecycle state change event.
rgds
Amit
Hi Amit,
Yes you can make use lifecycle state change event and Job Processor API to attain your functionality.
1. Write a JobProcessor API to generate a link for the vault file using file Master Id and mail that to respective user's email using SMTP (Have settings to configure SMTP values)
2. During File Lifecycle state change event, Add the above job to the Job Processor by passing file master id and user Id as arguments.
Make sure you have enabled Job Server and your custom job has been added to the Job Processor.
Regards,
Balaji A
Hi Balaji,
Thanks for the reply and suggestion, i will work on this.
rgds
Amit
Hi Amit,
I don't have the entire code but can give you some reference/hints
1. For JobProcessor API refer to the sample in sdk
2. For SMTP mail functionality refer this link http://www.vbforums.com/showthread.php?413155-Send-email-thru-ASP-NET-with-SMTP-Auth
3. To Add jobs during Life cycle state change event, use can use either
i. Life cycle state sample but you cannot pass your own parameters as argurments to jobs using this method.
ii. If you want to pass custom parameters, use web service extension API post method and add parameters to jobs as given in JobProcessorApiSamples.
Regards,
Balaji A