@Anonymous
I'm nt entirely sure what logic you are trying to achieve on the formula.
You are checking if the record is blank, and if it is, then you are patching it?? That's not going to work.
Maybe give something like this a try:
Set(record;
Lookup(Employees_dump;
PracovnikJmeno = User().FullName
&& Title = ThisItem.Title)
);;
If(!IsBlank(record.Title);
Patch(Employees_dump; // Record exists...update it
record;
{Konec: Now();
LatitudEnd:Location.Latitude;
LongitudEnd:Location.Longitude}
);
Patch(Employees_dump; // Record does not exist...create it
Defaults(Employees_dump);
{Konec: Now();
LatitudEnd:Location.Latitude;
LongitudEnd:Location.Longitude}
)
)
In the above, you are setting a variable to the record you want.
You can use the IsBlank on any column in that record that you know should exist to determine if it is blank. In this case, we're looking at the Title.
But, to "correct" the logic, in this case we are first setting the record, then checking if it is NOT blank, and then patching it. And if it is blank, then creating it.
I hope this is helpful for you.