Hi Halfar,
For this issue, we suggest you to use a custom workflow through SharePoint Designer to achieve your requirement.
I create a leave list to store the details of the leave, add one column, daysofleave. Then create a custom workflow attached to the leave list and set it to allow this workflow to be manually started through SharePoint designer 2007.
Here are the steps:
Step1:
Action: Collect leave task from manager(Output to Variable: ID of Task) (in the data parameter, create a field AppStatus with type Choice( approve and reject)
Then Set Variable:ReStatus to Task:AppStatus (set the workflow variable ReStatus to the Task field AppStatus)
Step2: Condition: If Variable:ReStatus to equal approve (Compare any data source)
Action: Email HR’s email address (set the email’s body to the leave list’s column, title and daysofleave)
Condition: Else if Variable:ReStatus equals reject (Compare any data source)
Action: Email: user’s email address (set the email’s body to reject)
More information:
http://office.microsoft.com/en-us/sharepoint-designer-help/collect-data-from-a-user-in-a-workflow-HA010209808.aspx#BM7
Please check it, if there is any problem, please feel free to let me know.
Best Regards.
Qiao Wei
TechNet Community Support
