Hi,
I created a PowerApp connected to the SharePoint list which on start will check if the different statuses are approved in the list. If so, based on the approval type it will take the user to an appropriate screen to fill out all the necessary details.
The first two parts of my code work fine but the last part where it checks the Legal Approval Status is not working correctly. It won't take the user directly to Finance Screen when the Legal Approval Status is Approved. Can someone help me with what is wrong with my code?
If(
IsBlank(Param("ID")),
'Preliminary Screen',
If(
((LookUp(
'Software Acquisition List',
ID = Value(Param("ID"))
).'Infosec Approval'.Value = "Approved") && (LookUp(
'Software Acquisition List',
ID = Value(Param("ID"))
).'IT Approval'.Value = "Approved") || (LookUp(
'Software Acquisition List',
ID = Value(Param("ID"))
).'Salesforce Approval'.Value = "Approved")) || (LookUp(
'Software Acquisition List',
ID = Value(Param("ID"))
).'Exec Approval'.Value = "Approved"),
'LegalScreen',
If(LookUp('Software Acquisition List', ID = Value(Param("ID"))).'Legal Approval Status'.Value = "Approved", 'FinanceScreen', 'Preliminary Screen')
)
)