Hi,
I have a ForAll Patch and inside is an IF statement. This is a checkbox status. If the status is in "Created" and it is OnCheck then it should change it's status in "Ready". But my IF statement is not working.
ForAll(
SelectedItemsColl As sic,
Patch(
'Inspection Request Detail List',
LookUp(
SelectedItemsColl,
ID = sic.ID
),
If(Status.Value in "Created", {Status.Value: "Ready"},
Status.Value in "Ready", {Status.Value: "In-Room"},
Status.Value in "In-Room", {Status.Value: "Presented"},
Status.Value in "Presented",{Status: Inactive, Status.Value: "Closed"}
)
)
);
Can anyone help me to spot where I am doing it wrong? 🙂
Any helps really appreciated! Thank you.
Regards,
May