Hi Martin
Could you please explain the point you mention more since when I modify the query as below , positionWorkerAssignment.Worker & positionWorkerAssignment.Position are now empty ?
select validTimeState(startDateTime,toDateTime) RecId from positionWorkerAssignment
where positionWorkerAssignment.Worker == workerRecId
&& positionWorkerAssignment.Position == positionRecId;