setFieldValue to get Direct Reports of a Manager

Forums Dynamic Forms for SharePoint setFieldValue to get Direct Reports of a Manager

This topic contains 2 replies, has 2 voices, and was last updated by  Craig Campbell 8 months, 4 weeks ago.

  • Author
    Posts
  • #20089

    Craig Campbell
    Participant

    Hello Alex, I am trying to get the Direct Reports information from the userprofile properties. I have this working for other fields but cannot get the information for a list of Direct Reports. I am trying to insert this inofrmation in a People Picker field or in a Multi Line text field. Is this possible? See attached code.

  • #20102

    Alexander Bautz
    Keymaster

    I see you have logged the userprofile object to the console – look at the output and make sure the “DirectReports” attribute is correct and that it has the correct format for inserting in a PP (string with display name or loginname)?

    Alexander

  • #20260

    Craig Campbell
    Participant

    Thanks Alex. It turns out that this is a hidden calculated field and is not available through the the userprofile.

You must be logged in to reply to this topic.