I need to get the Manager name using sharepoint designer 2013 workflow. Can anyone please help me to achieve this.
-
you can simply use the Lookup Manager for User activity option.– Bhaskar DhoneDec 16, 2015 at 12:24
-
in 2013 workflows Userprofiles activity is not there as like 2010– Lavanya PuppalaDec 16, 2015 at 12:30
-
I missed 2013 part. I have updated it in answer. Hope it helps.– Bhaskar DhoneDec 16, 2015 at 12:37
3 Answers
In SharePoint 2013 workflow type we do not have Lookup Manager for User activity. For that SharePoint 2013 workflow you will need to use the Call HTTP Web Service activity, with the following end point URL:
http://your-sharepoint-site/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=[%Workflow Context:Initiator%]
You can get more information at Details
You can use SharePoint 2010 workflow in SharePoint 2013. Then use lookup Userprofiles activity to get manager name.
If you are using 2010 workflow then you can select Data source as User profiles and select the field as Manager