Check out of office workflow activity
To support the workflow we will now create a custom workflow activity that can connect to the user profiles and perform a series of actions. Custom workflow activities are a great way to expand the capabilities of a SharePoint workflow allowing you to connect to additional farm services such as the User Profile Service application, Business Connectivity Services, or even managed metadata services. It can also be used to integrate with other systems directly for cases where Business Connectivity Services is not available or is not desirable. Another advantage to building custom workflow activities is that you can group multiple steps together into one reusable activity.
Approach
The CheckOutOfOffice
activity will accept a username and perform the following steps:
1. Check the user's profile to see if they are Out of Office, with a delegate specified.
2. If they are:
Log the delegation decision in the workflow's history
Log the task information to the Master...