Office - InfoPath and populating email, name, phone from Active directory

Asked By Jim
05-Dec-07 07:04 PM
I have some nice Inopath forms working, but I would love to be able to have
an easy lookup of on my forms for people such as requestors (in a purchase
requisition requestor).  When doing Sharepoint administration I can easily
look up some who is in active directory and give them permissions by putting
in a partial name or email userid and it automatically populates the rest.
THere must be some way to invoke that same type of functionality into an
InfoPath form.
Thanks for anyone's help or pointers for where I can go.
It would also be great to be able to prepopulate the requestor field with
the person who opened the form.
Jim
Active Directory
(1)
InfoPath 2003
(1)
InfoPath
(1)
XnPropertiesTable.SelectSingleNode
(1)
System.DirectoryServices
(1)
VB.NET
(1)
ListAllProperties
(1)
VBScript
(1)
  ClayFo replied...
05-Dec-07 11:16 PM
Hi Jim.

I do this quite frequently and identifying the form user is very nice as
well as being able to access email or group membership.

Check out the Database Accelerator package of webservices at
http://www.qdabra.com it includes an Active Directory Webservice as well as
you can get it by itself.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
  SYMWongATo replied...
06-Dec-07 02:23 AM
Have you already seen this article?
http://msdn2.microsoft.com/en-us/library/bb952744.aspx
---
S.Y.M. Wong-A-Ton
  Jim replied...
06-Dec-07 10:30 AM
S.Y.M. Wong-A-Ton
I will look at that article, thanks.  I am on InfoPath 2003.  I wonder if
the article will staill apply to InfoPath 2003.
Jim
  SYMWongATo replied...
07-Dec-07 12:57 AM
Jim,

The code in the article will be different for InfoPath 2003. The
System.DirectoryServices namespace has been around for a while, so if you're
using managed code (VB.NET or C#), you will be able to use it in older
versions of .NET. Retrieving the user's name is also possible using .NET
code. If you're using script (VBScript or JScript) there is a scripting
language called ADSI that you could use to get data from Active Directory.
All in all, retrieving info from AD is not easy, so if you go down that road,
things might get bumpy...

Tip: Do a search in the newsgroup on Active Directory; many people have
tried to do what you are trying to do now.
---
S.Y.M. Wong-A-Ton
  HighlanderMo replied...
27-Dec-07 04:19 PM
Hi, I used the code directly from the article that you referenced. I can get
the first part to work just fine but the ListAllProperties code keeps
erroring out. I have started from scratch three times to make sure that I was
copying the code correctly. I also had someone else try it and the same thing
happened.

It errors out in the for each userProperty loop at:
xnPropertyName = xnPropertiesTable.SelectSingleNode( _

The error message is:
Object reference not set to an instance of an object.

Any help would be greatly appreciated.
Thanks,
Connie
--
HighlanderMom
help
Dual-Installation Office 2003 und 2007 ~ "2003 soll wider das Sagen" haben. Office Betrifft: Dateierweiterung Guten Tag zusammen Folgendes ist geschehen. Ich habe eine Dual-Installation von Office 2003 und Office 2007. Diverse Anpassungen in der Registrierung wurden erledigt. Wenn ich jetzt eine Datei Es wird mir immer nur eben Office 2007 angeboten. Auch eine" Zwangs Beglückung" mit Office 2003 funktioniert nicht. Nun die Frage: wie erkläre ich dem Computer, das weiterhin Office 2003 das Sagen hat, und Office 2007 nur sozusagen der Gast im System ist, und nur auf ausdrücklichen Wunsch (testen) zu reagieren hat. Danke. Office Discussions Office 2007 (1) Office 2003 (1) Excel 2003 (1) Word (1) XP (1) Computer (1) Office Excel (1) Guten Tag (1) Am 08 11.2011 schrieb Andreas G: Dann ?ffne die Datei mit Rechtsklick > ?ffnen mit > Excel 2003 ausw?hlen. Wie f?hrst Du den "Verkn?pfungsversuch" durch? Wie zwingst Du 2003 zur
Office 2003 und 2010 auf einen Rechner Office Hi, folgende Frage, ich habe Office 2010 installiert und *danach* Office 2003. Nund schaffe ich es nicht eine *.xls Datei mal mit Excel 2003 oder mal mit Excel 2010 zu ?ffnen. Beim Doppelklick ?ffnet sich immer 2003. Auch ein . . ?ffnen mit Excel 2010 ?ffnet sich anschlie?end 2003. Hat jemand eine Idee wie ich es schaffe die Datei mal mit dem einen mal dem anderen Excel zu ?ffnen? Vielen Dank j?rgen Office Discussions Office 2010 (1) Office 2003 (1) Excel 2010 (1) Excel 2003 (1) Outlook (1) XP (1) Michael Schmidt (1) Xls Datei (1) Am 30.09.2010 restlos, u.a. bei Valdet findest du was dazu. http: / / office-blog.net / post / Office-2003-vollstaendig-entfernen-und-erneut-installieren.aspx http: / / office-blog.net / post / Office-2010-vollstaendig-entfernen
Request a online manual for infopath Office Hello, I have been searching around on the web for a manual on how to get started using infopath 2010 but was not able to find any good one. What I am looking for various commands with pictures show how to use the program. Can anyone recommend some? Thanks InfoPath Discussions InfoPath (1) Jon, I have been posting some How To style videos on my website for InfoPath (www.p3connect.com.au / training / tutorials.html) which might be a good starting point. Keep back to this link as I have just started a new series which takes an InfoPath form from blank through to a developed form. These videos are not edited or scripted free to contact me via the website if you have specific questions in relation to InfoPath Forms. Regards, Kathryn keywords: Request, a, online, manual, for, infopath description: Hello, I have been searching around on the web for a manual on how
Infopath 2003 List box to Access Database issue. Office Hi all, I have created an Infopath 2003 form which pulls in data from an Access database. The first control box is a click on them in the drop down). Is this possible? Many thanks for your help. InfoPath Discussions Database (1) Access database (1) Drop down list (1) Control box (1) Boxes (1 of the 5 list boxes) based on the value of the first drop-down? keywords: Infopath, 2003, List, box, to, Access, Database, issue. description: Hi all, I have created an Infopath 2003 form which pulls in data from an Access database. The first control box is
Access to database denied and Full Trust Office Hello I have created an Infopath form connected to an Access data base and populated the form with the data base but Infopath says it cannot connect to the database After reading around, I thought that making the Infopath form 'Full Trust' would solve the problem But now Infopath refuses to open the data base, giving the reason that it is Full Trust but was not created using a certificate or a numeric signature !! Can anyone help? Thanks InfoPath Discussions Full Trust (1) Database (1) Access data (1 Infopath (1) Data base (1) Problem solved Create certificate seems to do the trick ! keywords: Access, to, database, denied, and, Full, Trust description: Hello I have created an Infopath form connected to an Access data base and populated the form with the data base but Infopath says it cannot connect to t