Dynamic AccountName for UserProfileService DataConnection?

B

Barry Prentiss

Hi,
I need to retrieve user information from the Sharepoint server's
UserProfileService Web Service.
I use this successfully in retrieving the logged-in users' info, but need
to get info for other on-site users using their "AccountName" (i.e.
DOMAIN\username).
How do I define a data connection that retrieves info for an AccountName
defined in a field on my form? i.e.
UserProfileService.GetUserProfileByName("AccountName")?

Thx,
Barry
 
E

Ed Thurber

i think the way i have done this in the past was to use a rule on the source
element(field) that sets the query value of the webservice data connection
to the value in the source element then executes the query. the data source
will now have the new values based on the applied username.

Ed
 
P

Paresh

i think the way i have done this in the past was to use a rule on the source
element(field) that sets the query value of the webservice data connection
to the value in the source element then executes the query.  the data source
will now have the new values based on the applied username.







- Show quoted text -

Hi Barry,

Please tale a look at the following links:

http://blogs.msdn.com/infopath/arch...e-user-profile-through-moss-web-services.aspx
http://blogs.microsoft.co.il/blogs/...et-the-current-user-without-writing-code.aspx

Thanks,
Paresh
http://www.openzeas.com/blogs/Paresh/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top