Skip to main content
April 7, 2023
Solved

How to get the WorkspaceID (GUID) from within an Extensibility Rule

  • April 7, 2023
  • 2 replies
  • 0 views

OS Version 7.3.3
My files are stored in a Named Workspace, "Finance WS"
I want to open a file stored in Finance WS.  How do I get the workspace guid to accces the file?

Dim guidWs as Guid = ???
BRApi.Dashboards.FileResources.GetFileResource(si, False, guidWs, strFilename)

Best answer by EricOsmanski

Dim gValue As Guid = BRApi.Dashboards.Workspaces.GetWorkspaceIDFromName(si, isSystemLevel, workspaceName)

2 replies

April 10, 2023

Dim gValue As Guid = BRApi.Dashboards.Workspaces.GetWorkspaceIDFromName(si, isSystemLevel, workspaceName)

April 10, 2023

Thanks Eric. 

Could I be missing an import?

RobbSalzmann_0-1681143971010.png

RobbSalzmann_2-1681144042682.png

 

 

April 10, 2023

It doesn't appear you are. I am on v7.4.1

EricOsmanski_0-1681144560333.png

 

April 10, 2023

7.3.3 here, didn't know 7.4.1 was GA.  I see it in the MarketPlace.  thanks for the help.