Skip to main content

Marwan Tarek's Blog [MVP]

Go Search
Home
Ayman El-Hattab's Blog
Marwan Tarek's Blog
Mohamed Yehia's Blog
  

SharePoint 4 Arabs - Online SharePoint Training, Video Tutorials and Webcasts in Arabic > Marwan Tarek's Blog [MVP] > Categories
How to retrieve Users Manager in SharePoint Designer Workflows

SharePoint Designer 2010 facilitates the creation of SharePoint workflows for Power Users using very intuitive user interface and a set of ready-made actions (which can be extended).

One of the useful actions available is “Lookup Manager of a user”

2012-01-17-RetrieveUsersManager-01.png

Office.com explains the functionality of this activity as follows

“This action is initially displayed in workflow steps as Find Manager of this user (output to Variable: manager). Use this action to look up a user's manager. The output value is then stored in a variable.

Following is an example of what the action might look like in a workflow step:

Find Manager of Workflow Context:Initiator (output to Variable: manager)"

To use this action

  1. Insert it into SharePoint designer from the “Action” menu

    2012-01-17-RetrieveUsersManager-02.png

  2. Click on “this user ” to select the target user who we need to find his/her manager
  3. From “Select Users” dialog you can choose a user by name or from a Group or the user who created the current item.
  4. After selecting the looked-for user, the action configuration is ready and you can use the manager name from the output variable “manager”

Final configuration of the action

2012-01-17-RetrieveUsersManager-03.png

Another option to retrieve the user’s manager is from the user profiles.

For example in the “Start Approval Process” action when you configure the participants, Select “Workflow Lookup for a User…”

2012-01-17-RetrieveUsersManager-04.png

Then Select the following fields:

Data source: User Profiles
Field from source: Manager
Field: Account Name
Value Current Item:Created By

2012-01-17-RetrieveUsersManager-05.png

By using this method you will be able to get the manager of the user who created the current item where the workflow will be applied and he will be assigned the approval task.