Get the ProjectUID linked to the current workspace

B

boggyboy

I want to retrieve the ProjectUID that is associated with the current WSS
workspace. Any guidance you could give?
 
P

Piet Remen

Hi there. Use the Project Server reporting database. Inside there is a view
named [MSP_EpmProject_UserView]. This view contains both fields you are after
[ProjectUID] and the WSS site URL as coumn [ProjectWorkspaceInternalHRef].
This should give you your link.

Piet Remen
Solutioin Specialist
Strategic Data Management
 
M

Martin Winzig

ProjectUID = new
Guid(SPContext.Current.Web.AllProperties["MSPWAPROJUID"].ToString());
 
B

Bryant Likes

Martin Winzig said:
ProjectUID = new
Guid(SPContext.Current.Web.AllProperties["MSPWAPROJUID"].ToString());

Exactly! :)

You really should put your name somewhere on your blog. I knew that the blog
belonged to someone in this community but I had been out for a few days and
couldn't remember the name. All the posts were posted by "admin" so that
wasn't any help. :)
 
M

Martin Winzig

I mentioned my name is same posts :)

--
Blog: http://www.projectserver.cz


Bryant Likes said:
Martin Winzig said:
ProjectUID = new
Guid(SPContext.Current.Web.AllProperties["MSPWAPROJUID"].ToString());

Exactly! :)

You really should put your name somewhere on your blog. I knew that the blog
belonged to someone in this community but I had been out for a few days and
couldn't remember the name. All the posts were posted by "admin" so that
wasn't any help. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top