Publishes a process unit, and optionally attaches documents and publishes all other process units that consist of the specified Scenario, Year, Entity, and Value dimension members and the other base Period dimension members.
<HsvProcessFlow>.Publish2 lScenario, lYear, lPeriod, lEntity, lParent, lValue, vbUseAllValueMembers, vbApplyToAllPeriods, bstrAnnotation, varabstrPaths, varabstrFiles, psNewProcessState
This example publishes a process unit and attaches documents. The calls to the user-defined GetMemberID function get the process unit’s member IDs; for information on GetMemberID, see the Examples for GetItemID. These member IDs are then passed to Publish2.
Dim lScen As Long, lYear As Long, lPer As Long Dim lEnt As Long, lPar As Long, lVal As Long Dim cHsvProcessFlow As HsvProcessFlow, iState As Integer Dim saPaths(1) As String, saNames(1) As String lScen = GetMemberID(DIMENSIONSCENARIO, "Budget") lYear = GetMemberID(DIMENSIONYEAR, "2005") lPer = GetMemberID(DIMENSIONPERIOD, "July") lEnt = GetMemberID(DIMENSIONENTITY, "Virginia") lPar = GetMemberID(DIMENSIONENTITY, "UnitedStates") lVal = GetMemberID(DIMENSIONVALUE, "USD") saPaths(0) = "docs" saPaths(1) = "docs" saNames(0) = "Audit.txt" saNames(1) = "Comments.txt" 'g_cSession is an HsvSession object reference Set cHsvProcessFlow = g_cSession.ProcessFlow cHsvProcessFlow.Publish2 lScen, lYear, lPer, lEnt, lPar, lVal, _ False, False, "see attached", saPaths, saNames, iState