Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Get Workspace Name from ObjectID
Alastair
Can anyone help me here?
Is there anyway to prgrammatically return the name of a workspace from the objectid that is presented in the Workspace Generator success log file?
Find more posts tagged with
Comments
jny
You may use the SDK to get a handle to the object by calling the GetObjectBySID(objectID) method. Then you may call the Workspace.Name to return the name.
[C#]
// WorkSite 8.0
IManDMS dms = new ManDMSClass();
IManSession sess = dms.Sessions.Add("<SERVERNAME">);
sess.TrustedLoing();
IManWorkspace ws = dms.GetObjectBySID(objectid);
string wsname = ws.Name;
Migrateduser
Could anyone paste a jsp(will be used in a connector) version for this issue?thanks a lot.