Forum Discussion

Sergey's avatar
Sergey
Icon for OneStream Employee rankOneStream Employee
2 days ago

How to call a workspace assembly service from another workspace assembly service ?

Dear community,

One of my use case is to create a function that I would commonly use in any other workspace. I haven't seen a community message about it, and the documentations does not specify how to do so, so here's the use case :

I have a Workspace A (name:  WorkspaceA), with an assembly named WA_Assembly, and in it are my services & functions that I want to reference and use.

I have a Workspace B, where I need to call the functions from Workspace A.

SOLUTION : Create a new dependency in Workspace B :

  • Dependency Type : "Workspace Assembly"
  • Shared Workspace Name : WorkspaceA
  • Dependency Name : WA_Assembly

Then, in a given Workspace B service, use Imports Workspace.WorkspaceA.WA_Assembly (vb.net) or using Workspace.WorkspaceA.WA_Assembly (C#) for referencing the Shared Public Functions. Then you will be able to use these functions in another workspace !

Just adding this message for future references :)

 

1 Reply

  • JackLacava's avatar
    JackLacava
    Icon for OneStream Employee rankOneStream Employee

    Just remember that Workspace A must have "Is Shareable Workspace" set to True...