GUID of TFS query

Nov 29, 2014 at 9:00 AM
Hi, can anyone tell me how do I determine the ScopeQuery GUID of a TFS query saved in TFS. From the documentation page, it says grab its properties from Visual Studio, but I am not getting any properties option in Visual Studio for a TFS query which I have saved under 'My Queries' section.
Nov 29, 2014 at 10:28 PM
Hi !
Older versions of Visual Studio let you display the properties of a query.
You could also use the menu entry (by right clicking) to display the query in TFS Web Access, the GUID could be found in the query.

With VS 2013, I could get the GUID by sending the result to Outlook : you'll find the GUID in the URL of the first link displayed in the mail.
https://tfsserver/web/qr.aspx?pguid=6867c898-3ceb-4305-83a9-9771037f5408&qid=__8f5b7e8b-23ff-4a65-bc11-1993ef32b1ae__

Maybe there are simpler ways to get it...
Nov 30, 2014 at 11:51 AM
Hi Vincent, thanks for ur answer!
When I send the query result to Outlook and get the hyperlink as posted above, there are 2 GUIDs in the link.
Can you tell me what is the difference between 'pguid' and 'qid'.
As my 'pguid' field is same for all the queries saved under the 'My Queries' section and only the 'qid' changes.