I'm patching two SharePoint lists in else part of if condition but it returns an error : "Expecting one of the following Boolean ,Number ,Text,OptionSet Value."
My code is :
If(
isBlank(textinput.text),Notify("Field is required",Error),Patch(
SharePointList1,defaults(SharePointList1),{Name:textinput.text}
) && Patch(
SharePointList2,defaults(SharePointList2),{Name:textinput.text}
)
);
After first Patch function it does not even allow any Reset(),Navigate() or any other function.
I want to use validation for once only, otherwise to Patch second list I had to write these conditions again.
Can anybody tell me what mistake I'm making?
Regards,
Rahul