?
Solved

Microsoft, InfoPath 2007, 2007, MOSS 2007, Web Services, username

Posted on 2008-11-10
6
Medium Priority
?
269 Views
Last Modified: 2012-05-05
I have been able to create forms and publish to MOSS 2007.  I have a field I've created before and pulled the "Preferred Name" of the user into the form with no problem using the web services.  All of a sudden, I can't.  I only get a SID.  I've tried using the action and "username()", but that comes in blank.  Any ideas would be great.
0
Comment
Question by:Sherry
  • 4
  • 2
6 Comments
 
LVL 28

Expert Comment

by:Clay Fox
ID: 22926966
Try creating a test InfoPath form to get preferred name and see if it does the same thing.

If so the issue is that the web service may have changed, otherwise it is a form issue.
You may be filtering out the wrong field.
0
 

Author Comment

by:Sherry
ID: 22940812
I have tried creating a new form and pulling in that field.  Same thing.  Here's what I'm putting in

Value[Name="PreferredName"]

This is what I have used before with no problem.  I use the GetUserProfilebyName from the web service.  I even tried accessing the form from another computer, same thing.  We did have problems with our AD recently.  Most users were deleted and had to be restored.  I reindexed the SharePoint after running a new import.  No luck.  I checked the database, userdata tables and only find about 5 entries.  I may be checking the wrong database to find them, but don't see any other users.  I even pointed to another server for the web service in another farm, test environment, same thing.  I'm going to try configuring my service provider on the test environment today, import the profiles again and see if that helps.
0
 
LVL 28

Expert Comment

by:Clay Fox
ID: 22968986
Have you put all these variables on the form. Put your AD node in a repeating table so you can verify exactly what is being returned.  
Often it is a simple mismatch with a space or some other text issue.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:Sherry
ID: 22979052
I've only tried to return the username on one field at this point.  I'm not sure what you mean by putting an AD node in a repeating table.  So far, I've only been programming a little, most of what I've done is out of the box.  I'll check on this and make sure I'm putting things in ok.
0
 

Author Comment

by:Sherry
ID: 23036789
I am still unable to retrieve anything except the user sid from the web service.  Can anyone tell me how I might try retrieving the user account instead of the preferred name.  Just to see if I can.  Thanks
0
 

Accepted Solution

by:
Sherry earned 0 total points
ID: 23141198
I am still unable to retrieve a user name from the web service in infopath.  Could it be that the web service is corrupt in some way and how might I fix this issue?  Any help would be greatly appreciated.
0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question