Download a Process Template Programatically
Can anybody help me with the code sample for downloading the specified Process Template as it is done by the Process Template Manager in VS Team Explorer.
Any ideas are also welcome.
Can anybody help me with the code sample for downloading the specified Process Template as it is done by the Process Template Manager in VS Team Explorer.
Any ideas are also welcome.
Hello Nihal,
You can use the IProcessTemplates interface for this purpose. It has a method called GetTemplateData which will download the template to a temp file on the disk and return the name of that file. So for a given template name:
int index = processTemplates.GetTemplateIndex(templateName);
string templateFile = processTemplates.GetTemplateData(index);
The downloaded file is a .zip file that needs to be decompressed before it is used.
Hope this helps!
Hello Yogita,
Thank you very much for such a quick response. I was looking into IProcessTemplates but could not figure out a way due to lack of documentation. Anyway, thank you very much for the help.