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
Assuming that column "Name" is a text column, try
If(
IsBlank(textinput.text),
Notify("Field is required", NotificationType.Error),
Patch(
SharePointList1,
Defaults(SharePointList1),
{Name:textinput.text}
);
Patch(
SharePointList2,
Defaults(SharePointList2),
{Name:textinput.text}
)
);
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.