0

Is there a way to get a list of stored queries using TFPT in VS 2013? I tried things like this, but that does not work.

tfpt.exe query /include:data "xxx\Shared Queries\Releases\*" /collection:http://tfs2013

Result is "The stored query could not be found"

RGuggisberg
  • 4,630
  • 2
  • 18
  • 27

1 Answers1

0

Nope. Tfpt will only return the count, data, or headers of the query you pass to it. Is there a specific reason you'd need to dynamically create a list of query names? It can be done using API calls, but there'd be a lot of extra lifting to parse the name out from a WIQL (at least off the top of my head). Storing the query names in an array either a) in the script or b) in a text file for reading would be the way to go here, imo.

If you want my thoughts on how to use the API though, let me know.

pbkac
  • 39
  • 7