Question
how can we get/ fetch the active workspace through customization.
Version: Windchill 12.1
Use Case: I wanted to add some BOM into workspace, iam unable to get the active workspace. I did by hardcoding the workspace oid
Description:
i collated the BOM and i need to get the active workspace,
I don't know how to get the active workspace, as of now i am hardcoding the workspace oid
wt.epm.workspaces.EPMWorkspace workspace = (wt.epm.workspaces.EPMWorkspace) referenceFactory
.getReference("OR:wt.epm.workspaces.EPMWorkspace:1150900").getObject();
i wanted to dynamically fetch the active workspace instead of hardcoding the workspace OID, i need to retrieve the active workspace for the current user session.

