Forum Discussion

Sergey's avatar
Sergey
Contributor III
4 months ago
Solved

ExecuteCustomCalculateBusinessRule ... but in workspaces

Hi, I came across an update function in the business rules for ExecuteCustomCalculateBusinessRule Previous function (still in use) : BRApi.Finance.Calculate.ExecuteCustomCalculateBusinessRule(si,...
  • JackLacava's avatar
    11 days ago

    When you use services of any type, you never refer to them - you always refer to the Factory that can return them. So "brName" in that context will be:

    • Workspace.YourWorkspaceName.WS
    • Workspace.YourWorkspaceName.YourMaintUnitName.WSMU
    • Workspace.Current.WS (when the factory is in the same workspace as the caller)
    • Workspace.Current.Current.WSMU (when the factory is in the same maintenance unit as the caller)
    • Workspace.Current.YourMaintUnitName.WSMU (when the factory is in the same Workspace but different Maintenance Unit as the caller)