GetGroupPhaseFromCell

Returns the IDs of the submission group and submission phase to which a given cell is assigned.

Syntax

<HsvProcessFlow>.GetGroupPhaseFromCell lScenario, lYear, lPeriod, lEntity, lParent, lValue, lAccount, lICP, lCustom1, lCustom2, lCustom3, lCustom4, pbstrGroup, pbstrPhase
ArgumentDescription
lScenarioLong (ByVal). The member ID of the process unit's Scenario dimension member.
lYearLong (ByVal). The member ID of the process unit's Year dimension member.
lPeriodLong (ByVal). The member ID of the process unit's Period dimension member.
lEntityLong (ByVal). The member ID of the process unit's child Entity dimension member.
lParentLong (ByVal). The member ID of the process unit's parent Entity dimension member.
lValueLong (ByVal). The member ID of the process unit's Value dimension member.
lAccountLong (ByVal). The member ID of the cell’s Account dimension member.
lICPLong (ByVal). The member ID of the cell’s Intercompany Partner dimension member.
lCustom1Long (ByVal). The member ID of the cell’s Custom1 dimension member.
lCustom2Long (ByVal). The member ID of the cell’s Custom2 dimension member.
lCustom3Long (ByVal). The member ID of the cell’s Custom3 dimension member.
lCustom4Long (ByVal). The member ID of the cell’s Custom4 dimension member.
pbstrGroupString. Returns the ID of the cell's submission group.
pbstrPhaseString. Returns the phase ID of the cell's submission phase.

Example

The following function obtains the phase ID of the cell's submission phase, then starts the phase with PhasedSubmissionStart2.

Function StartPhasedWorkflow(lScen As Long, lYear As Long, lPer As Long, _
    lEnt As Long, lPar As Long, lVal As Long, lAcct As Long, lIcp As _
    Long, lC1 As Long, lC2 As Long, lC3 As Long, lC4 As Long, sNote As _
    String) As Integer
Dim cProcessFlow As HsvProcessFlow, sGroup As String, sPhase As String
Dim vaPaths As Variant, vaNames As Variant, iState As Integer
'g_cSession represents an HsvSession instance
Set cProcessFlow = g_cSession.ProcessFlow
cProcessFlow.GetGroupPhaseFromCell lScen, lYear, lPer, lEnt, lPar, lVal, _
    lAcct, lIcp, lC1, lC2, lC3, lC4, sGroup, sPhase
cProcessFlow.PhasedSubmissionStart2 lScen, lYear, lPer, lEnt, lPar, _
    lVal, MEMBERNOTUSED, MEMBERNOTUSED, MEMBERNOTUSED, MEMBERNOTUSED, _
    MEMBERNOTUSED, MEMBERNOTUSED, CLng(sPhase), True, False, sNote, _
    vaPaths, vaNames, iState
StartPhasedWorkflow = iState
End Function