Publishes a process unit, and optionally publishes all other process units that consist of the specified Scenario, Year, Entity, and Value dimension members and the other base Period dimension members.
To attach documents when publishing, use Publish2.
<HsvProcessFlow>.PublishEx lScenario, lYear, lPeriod, lEntity, lParent, lValue, vbUseAllValueMembers, vbApplyToAllPeriods, bstrAnnotation, psNewProcessState
This example publishes the specified process unit and the process units that consist of the base Period dimension members and the specified members of the other dimensions. 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 PublishEx.
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 lScen = GetMemberID(DIMENSIONSCENARIO, "Budget") lYear = GetMemberID(DIMENSIONYEAR, "2000") lPer = GetMemberID(DIMENSIONPERIOD, "July") lEnt = GetMemberID(DIMENSIONENTITY, "Connecticut") lPar = GetMemberID(DIMENSIONENTITY, "UnitedStates") lVal = GetMemberID(DIMENSIONVALUE, "USD") Set cHsvProcessFlow = m_cHsvSession.ProcessFlow cHsvProcessFlow.PublishEx lScen, lYear, lPer, lEnt, lPar, lVal, _ False, True, "", iState