In the OnSelect of my button, I have three statements I am trying to run. Each of these three statements work independently, and I get my desired results. However, when I put them together, only the first one runs....meaning the second Patch statement + Navigate do not get executed. If I take out the first Patch statement, the other two run just fine....so the second Patch runs and the Navigate runs as well. So for some odd reason, the first Patch statement is preventing the others from being executed. What could be causing this?
Patch(
list1,
ForAll(
Gallery1.AllItems,
If(
chkBox.Value = true,
{
Col1: label.Text,
col2: label2.Text,
User: {
'@data.type': "@Microsoft.Azure.Connections.SharePoint.SPLitExpandedUser",
Claims: labelClaims.Text,
DisplayName:labelNme.Txt,
Department: labelDept.Text,
Email:labelEmail.Text,
JobTitle: "",
Picture: ""
}
}
)
)
);
ForAll(
Filter(
Gallery1.AllItems,
chkBox.Value=false
) As _myData,
Patch(
list2,
LookUp(
list2,
ID=_myData.ID
),
{myChoiceCol: {Value: "Choice3"}}
)
);
Navigate(SuccessScreen);
Has anyone ran into this issue? How was it resolved?