I have some conditional navigation in StartScreen event based on matches a table's data value and logged-in user. I have prepared a splash screen that needs to redirect/navigate me to StartScreen event where I have following conditional navigation. The OnTimeEnd code didn't reconized.
If(
CountIf(
Table(
{Email: LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Supervisor.Email},
{Email: LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Adm2ApproverEmail},
{Email: LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).SUP2ApproverEmail},
{Email: LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Fin2ApproverEmail},
{Email: LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).ICT2ApproverEmail},
{Email: LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Sec2ApproverEmail},
{Email: LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).HR2ApproverEmail}
),
Email = User().Email
) >= 2,
ApprovalChoice, // If user has multiple roles, start at ApprovalChoice
If(
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Supervisor.Email = User().Email, SupervisorApprove,
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Adm2ApproverEmail = User().Email, AdminApprove,
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).SUP2ApproverEmail = User().Email, SupplyApprove,
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Fin2ApproverEmail = User().Email, FinanceApprove,
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).ICT2ApproverEmail = User().Email, ICTApprove,
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Sec2ApproverEmail = User().Email, SecurityApprove,
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).HR2ApproverEmail = User().Email, HRApprove,
LookUp('Exit Clearance V02', ID = Value(Param("ItemID"))).Final2ApproverEmail = User().Email, FinalApprove,
!IsBlank(LookUp('ExitClr v02-Approvers', User().Email = Name.Email && Category.Value = "Delegator")), DelegatorLanding,
!IsBlank(LookUp('ExitClr v02-Approvers', User().Email = Name.Email)) ||
!IsBlank(LookUp('Exit Clearance V02', User().Email = Supervisor.Email)), ApproversLanding,
RequestorLanding // Default screen if no conditions match
)
)
On Spalsh Screen OnTimeEnd event:
Navigate(App.StartScreen)
The command is not recognized :( :(
I have also tried to move the StartScreen codes in OnTimeEnd event of the splash screen which didn't do anything after end of timer. I think this would be possible if I somehow managed to redirect to the AppStart event after end of time.
I can't find an easy way to do it. If anyone can help me with this will be appreciated.