Hey! I have a sharepoint list

NameOfEmployee is an employee's email address. If I work at Finance department, I want my manager to get an email everytime I have requested a day off. I have tried this:
Office365Outlook.SendEmail(LookUp(
Employees,
Department = varMyDept,
Position = "Manager"
).NameOfEmployee ,"test", "test")
varMyDept is my department. It does not compile, can somebody help please?