Step 5: Get the response for the leave request
- Step 1: Create the list and columns in SharePoint
- Step 2: Design, configure, and publish the Leave Request form
- Step 3: Open the Workflow Gallery
- Step 4: Send acknowledgment email
- Step 5: Get the response for the leave request
- Step 6: Result notification email
- Step 7: Configure start options
- Step 8: Publish and test the workflow
Now we set up a task to be sent to the manager to get the task response. Follow the steps below:
1 |
Add the action and open the action configuration window |
- Click the User Interaction action group in the action toolbox and find the Assign a task action.
or
Type Assign a task in the Search field at the top of the action toolbox.
Add the action to the designer canvas and do one of the following to open the Action configuration window. For more information, see Action configuration window.
- Double-click the action.
- Click on the action and then click Configure.
2 |
Configure the action and Save |
- Add the Manager's email address in the Participant field:
- Click and in the Equals section that appears select Workflow Context in the first drop-down.
- Expand the second drop-down and select Manager email address.
- Click Insert.
[%Workflow Context:NW ManagerEmailAddress%] is inserted in the Participant field.
Note: If "Requires the User Profiles service" message is displayed, see Grant access to user profile service section in step 3 of this solution.
- In the Task Title field, enter the following:
- Click inside the field. The Insert Reference pane opens on the right.
- Expand the Workflow Context section and double-click on Initiator display name.
Leave request for {Workflow Context:Initiator display name}
{Workflow Context:Initiator display name} is a reference you can select from the Insert References pane. To select do the following:
- Select Current Item in the Related Item field.
- Leave the default setting for Task Outcomes.
- Select the Allow LazyApproval check box. This enables task outcomes to be used in email responses. For more information about LazyApproval, see LazyApproval.
- Click Save to save the configuration for the action.
With the above configuration, an email notification is sent to the initiator's manager to notify the manager of the leave approval task. The manager has the option of responding to the task by email reply as LazyApproval is enabled.
For more information about the fields, buttons and settings of the Assign a task action, see Assign a task fields, buttons, and settings.
Follow along This is what your workflow looks like at this point in the solution: |
Previous step: |
Next step: |