Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

how can I get the current user's manager's phone information.

I select the current user id like this:

public Guid workflowId = default(System.Guid);
public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties();

    private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
    {

        SPWeb web = workflowProperties.Web;

        SPUser spuser = this.workflowProperties.OriginatorUser;

        string strusername = spuser.Name;
        string strid = spuser.LoginName;

        SPListItem lisitem= workflowProperties.Item;

        if (lisitem["Full Name"] == null)
        {
            listitem["Full Name"] = strid;
            listitem.Update();
        }

but i couldnt find a way to reach manager 's phone information.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.