@GGG666 ,
I had some involvement on this earlier - if you are updating a single record, you are better doing this
With(
{
wMail:
LookUp(
'Home working schedule',
Employee.Email = User().Email
)
},
If(
IsBlank(wMail.ID),
NewForm(EditForm1_1),
Patch(
'Home working schedule',
{ID:wMail.ID},
{OUT_OF_OFFICE:"Yes"}
)
)
)
there is no need to set the variable here unless you want to use it later.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps