I am having problems with WSS 3.0 Workflow using joined lists. Here is the description:
I am creating a simple work-holiday request/booking app. This is just for internal department use so that staff can book annual leave and have it authorised by their respective manager.
To that end, I have two lists: The first list is called 'Staff' and contains the person's name, email address, and manager name. The manager name is populated by a drop-down on the same list.
The second list is called HolidayRequest and has fields for name (a drop-down based on the staff list), start date and end date.
When ever a new entry is made to the HolidayRequest list I want to trigger a workflow that will send an email to that person's manager to notify them for approval. The problem I have is getting the manager's name and email address into workflow. The problem as I see it is that this information is obtained through a joined list:
HolidayRequest Staff
StartDate, EndDate, Name -----------------> Name, EmailAddress, Manager
/\ |
| |
+-------------------+
So what I need is for the workflow to use the Name field from HolidayRequest, to locate the record for the same name in the Staff list, and then get the manager's name from that record, get the manager staff record and thereby the manager's email address. Its not exactly rocket-science, but I just can't figure it out in workflow (using Sharepoint Designer).
I guess the first question is whether workflow is the correct tool for this, and secondly if it is, then is there a way I can achieve what I need?
Thanks for reading.