Get the current user and manager in InfoPath

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 2 Replies | 1 Follower

Not Ranked
4 Posts
Points 10
ronnie_ca posted on Wed, Mar 3 2010 5:04

Have any one tried this? I need to display current user and the manager pre-selected on form load within a drop down so user can also change it? I have already tried this http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx?from=ClayCobb but it doesn't work.

All Replies

Not Ranked
5 Posts
Points 11
Answered (Not Verified) dee replied on Sun, Mar 7 2010 1:11 AM
Suggested by dee

Hi,

Set the rule in form open/save.In that rule get the currentuser through UserName() function and assign it for temp datafield then next action pass this value to the GetUserProfileByName method then specify he filter condition DataProperties-->Name is equalto Manager..But in ur Active directory should contains the Manager Name for the corresponding user, otherwise it wont return..
..Thats it.. u can get it...

 

  • | Post Points: 4
Not Ranked
4 Posts
Points 10

Hi dee,

I created a new rule "currentUser",  in Action I selected "Set a field's value", in field I selected a field from myfields and in the value i typed CurrentUser(), now how do I pass this to GetUserProfileByName? Could you explain it in bit more details pls

  • | Post Points: 1
Page 1 of 1 (3 items) | RSS