I have a customized SharePoint form with two fields, one for selecting a person (people picker field) and another field (text field) for that person's department. I would like the department field to auto populate with the person's department when the person is selected.
Tried with
Office365Users.UserProfile(DataCardValue75.Text).Department
(DataCardValue75 is the person selection field)
but it does not work... am I close or way off?
Solved! Go to Solution.
Hi @DavJaq.
Try:
Good luck!
Hi @DavJaq.
Try:
Good luck!
Thanks @seadude that worked...simpler than I thought, Happy New Year!
No sweat! Also note the other Active Directory objects you have access to after the "." (Department, JobTitle, etc.)
2019 cometh~!
Hi seadude, don't supposed you know how to get the person's manager? the person nominated is not necessarily the current user.
User | Count |
---|---|
134 | |
131 | |
78 | |
75 | |
71 |
User | Count |
---|---|
210 | |
198 | |
67 | |
62 | |
53 |